← All Tools
⚡ JS Performance Benchmark
Compare JavaScript code snippet execution speed. 100% client-side.
Setup Code
(runs once before each test)
×
const arr = []; for (let i = 0; i < 1000; i++) arr.push(i);
×
const arr = Array.from({length: 1000}, (_, i) => i);
▶ Run Benchmark
+ Add Case
Iterations:
100
1,000
10,000
100,000