⚡ JS Perf
Side-by-side JavaScript performance benchmarking
Snippet
A
const arr = new Array(1000).fill(0); for (let i = 0; i < arr.length; i++) { arr[i]++; }
Snippet
B
const arr = new Array(1000).fill(0); arr.forEach((x, i, a) => { a[i] = x + 1; });
Iterations:
100
1,000
10,000
100,000
▶ Run Benchmark
⬇ Export JSON
✕ Clear
Results
📋 Copy
Session History