Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Normal function vs Arrow function comparison
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:131.0) Gecko/20100101 Firefox/131.0
Browser:
Firefox 131
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Arrow function
530.8M/s
Normal function (0,0)
512.1M/s
Arrow function (0,0)
509.9M/s
Normal function
491.8M/s
View exact numbers
Test name
Executions per second
✓
Arrow function
530,799,040 Ops/sec
Normal function (0,0)
512,148,704 Ops/sec
Arrow function (0,0)
509,850,592 Ops/sec
Normal function
491,833,952 Ops/sec
Script Preparation code:
fn = function(a, b) { return a + b - 1 * b / a; }; afn = (a, b) => a + b - 1 * b / a;
Tests:
Normal function
fn();
Arrow function
afn();
Normal function (0,0)
fn(0,0);
Arrow function (0,0)
afn(0,0);