Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Direct call vs bind vs call vs apply (don't re-create bound function every time)
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:138.0) Gecko/20100101 Firefox/138.0
Browser:
Firefox 138
Operating system:
Ubuntu
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
direct call
476597696.0 Ops/sec
bind
51816028.0 Ops/sec
call
477984128.0 Ops/sec
apply
54209752.0 Ops/sec
Script Preparation code:
function test(msg) { var d = msg; } var boundTest = test.bind(null)
Tests:
direct call
test("Hello");
bind
boundTest("Hello");
call
test.call(null, "Hello");
apply
test.apply(null, ["Hello"]);