Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
Closure vs arrow function fork
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:138.0) Gecko/20100101 Firefox/138.0
Browser:
Firefox 138
Operating system:
Mac OS X 10.15
Device Platform:
Desktop
Date tested:
one year ago
Benchmark engine:
Benchmark.js
Closure
318K/s
Arrow function
316K/s
View exact numbers
Test name
Executions per second
✓
Closure
317,883 Ops/sec
Arrow function
316,400 Ops/sec
Tests:
Closure
var msg = "test"; var say = function() { console.log(msg); } say();
Arrow function
var msg = "test"; var say = () => { console.log(msg); } say();