Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
function vs arrow
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Browser:
Chrome 135
Operating system:
Linux
Device Platform:
Desktop
Date tested:
one year ago
Benchmark engine:
Benchmark.js
arrow
81.8M/s
function
80.2M/s
arrow-direct
79.9M/s
arrow-direct2
79.4M/s
View exact numbers
Test name
Executions per second
✓
arrow
81,839,472 Ops/sec
function
80,183,896 Ops/sec
arrow-direct
79,919,464 Ops/sec
arrow-direct2
79,430,648 Ops/sec
Tests:
function
const array = [1, 2, 3, 4, 5]; const filtered = array.filter(function(d) { return d % 2 === 0; });
arrow
const array = [1, 2, 3, 4, 5]; const filtered = array.filter((d) => { return d % 2 === 0; });
arrow-direct
const array = [1, 2, 3, 4, 5]; const filtered = array.filter(d => d % 2 === 0);
arrow-direct2
const array = [1, 2, 3, 4, 5]; const filtered = array.filter((d) => d % 2 === 0);