Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Arrow function vs normal function comparison
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0
Browser:
Firefox 124
Operating system:
Ubuntu
Device Platform:
Desktop
Date tested:
2 years ago
Normal function
1462.8M/s
Arrow function
1452.0M/s
View exact numbers
Test name
Executions per second
✓
Normal function
1,462,834,304 Ops/sec
Arrow function
1,452,042,752 Ops/sec
Script Preparation code:
arrowFn = (a, b) => a + b; fn = function(a, b) { return a + b; };
Tests:
Arrow function
arrowFn()
Normal function
fn()