Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Direct call vs bind vs call vs apply v23
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:134.0) Gecko/20100101 Firefox/134.0
Browser:
Firefox 134
Operating system:
Mac OS X 10.15
Device Platform:
Desktop
Date tested:
one year ago
direct call
725.5M/s
call
710.0M/s
apply
112.1M/s
bind
105.5M/s
View exact numbers
Test name
Executions per second
✓
direct call
725,450,304 Ops/sec
call
709,952,320 Ops/sec
apply
112,092,912 Ops/sec
bind
105,520,232 Ops/sec
Script Preparation code:
function test(msg) { var d = msg; } const f = test; const fb = test.bind(null);
Tests:
direct call
f("Hello");
bind
fb("Hello");
call
f.call(null, "Hello");
apply
f.apply(null, ["Hello"]);