Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Arrow call vs bind vs call vs apply with bound options
(version: 1)
Comparing performance of:
arrow call vs bind vs call vs apply
Created:
one year ago
by:
Guest
Jump to the latest result
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"]);
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (4)
Previous results
Fork
Test case name
Result
arrow call
bind
call
apply
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
6 months ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:144.0) Gecko/20100101 Firefox/144.0
Browser/OS:
Firefox 144 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
arrow call
1508477312.0 Ops/sec
bind
60821004.0 Ops/sec
call
803954112.0 Ops/sec
apply
99721704.0 Ops/sec
Related benchmarks:
Direct call vs bind vs call vs apply
Direct call vs bind vs call vs apply (don't re-create bound function every time)
Direct call vs bind vs call vs apply 2
direct vs bind vs apply vs call
Direct call vs bind vs call vs apply foosssdsad aas
Direct call vs bind vs call vs apply foosssdsad aasa
Direct call vs bind vs call vs apply v2
Direct call vs bind vs call vs apply vs static bound
Direct call vs bind vs call vs apply with bound options
Comments
Confirm delete:
Do you really want to delete benchmark?