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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.0 Safari/605.1.15
Browser:
Safari 18
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
one year ago
Normal function
8.6M/s
Arrow function
8.5M/s
View exact numbers
Test name
Executions per second
✓
Normal function
8,604,895 Ops/sec
Arrow function
8,477,080 Ops/sec
Script Preparation code:
arrowFn = (a, b) => a + b; fn = function(a, b) { return a + b; };
Tests:
Arrow function
arrowFn()
Normal function
fn()