Writing binary arrays – functions vs direct access
Ops per second
- #1Test with direct access28.18M
- #2Test with functions23.39M
V8 Firecracker analysis · 2 tests
Test with direct access
1.20× difference
Across JS engines
Same code, different engines. Higher = faster.
Optimizer boost
Big-O from code structure
Setup is parsed for context, but the estimate scores only each benchmark test body.
Only straight-line work or fixed-size operations were detected. No input-sized allocation was detected, so auxiliary space is estimated as constant. Setup symbols used as context: data, writeData, i.
Only straight-line work or fixed-size operations were detected. No input-sized allocation was detected, so auxiliary space is estimated as constant. Setup symbols used as context: data, writeData, i.
Memory-limit sweep
Using QuickJS memory-limit profiles for allocation-pressure signals.
Model confidence: 93%
Model confidence: 98%
What the data means
The same test wins both with and without the JIT — the result is driven by genuine algorithmic differences.
Where the data came from
Public benchmark executions used for leaderboard and environment breakdowns.
Node / Deno / Bun worker data across 8 single-core test-runtime pairs and 8 captured profiles.
Run it yourself.
Every benchmark on jsperf.net is reproducible — open source, hit Run.
Open source benchmark