Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
Arrow function vs bind function vs _.bind function
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (iPhone; CPU iPhone OS 18_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Mobile/15E148 Safari/604.1
Browser:
Mobile Safari 18
Operating system:
iOS 18.5
Device Platform:
Mobile
Date tested:
one year ago
Benchmark engine:
Benchmark.js
Arrow function
436.3M/s
Bind function
432.2M/s
_.Bind function
351.2M/s
View exact numbers
Test name
Executions per second
✓
Arrow function
436,332,864 Ops/sec
Bind function
432,231,136 Ops/sec
_.Bind function
351,230,144 Ops/sec
HTML Preparation code:
<script src='https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js'></script>
Script Preparation code:
var rThis = function() { return this }; arrowFn = () => rThis; bindFn = rThis.bind(this); _bindFn = _.bind(rThis, this);
Tests:
Arrow function
bindFn()
Bind function
arrowFn()
_.Bind function
_bindFn()