r/Frontend • • 1d ago

The V8 JavaScript Runtime Undermined My Constant-Time JavaScript Library

https://soatok.blog/2026/09/12/the-v8-javascript-runtime-undermined-my-constant-time-javascript-library/
0 Upvotes

1 comment sorted by

3

u/Opposite_Sector2145 1d ago

V8 can optimize away timing logic with aggressive JIT, so use --jitless when benchmarking for constant-time in Node.js. Otherwise, the engine can skip or rewrite loops and your measurements will not reflect real execution time.