Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Arrow call vs bind vs call vs apply with bound options
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:141.0) Gecko/20100101 Firefox/141.0
Browser:
Firefox 141
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
arrow call
3028.0M/s
call
1467.0M/s
apply
228.6M/s
bind
151.5M/s
View exact numbers
Test name
Executions per second
✓
arrow call
3,027,995,904 Ops/sec
call
1,466,984,064 Ops/sec
apply
228,605,488 Ops/sec
bind
151,488,816 Ops/sec
Script Preparation code:
function test(msg) { var d = this.hello + msg } function testContext(self,msg) { var d = self.hello + msg } let opts = { hello:1, world:2 }
Tests:
arrow call
((msg)=>testContext(opts,"Hello"))()
bind
test.bind(opts, "Hello")();
call
test.call(opts, "Hello");
apply
test.apply(opts, ["Hello"]);