🔍
Desktop App
☀️
⚙️
Benchmark Builder
Compare the performance of JavaScript code snippets by measuring operations per second.
Setup Code
(runs once before all tests)
Iterations
// Setup code runs once before all tests const arr = Array.from({ length: 1000 }, (_, i) => i);
Test Cases
Add Case
// Write your code here arr.filter(x => x % 2 === 0);
// Write your code here arr.reduce((acc, x) => x % 2 === 0 ? [...acc, x] : acc, []);
Run Benchmark