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 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Mobile Safari/537.36
Browser:
Chrome Mobile 132
Operating system:
Android
Device Platform:
Mobile
Date tested:
one year ago
direct call
9.7M/s
bind
9.2M/s
call
6.3M/s
apply
5.6M/s
View exact numbers
Test name
Executions per second
✓
direct call
9,714,277 Ops/sec
bind
9,177,314 Ops/sec
call
6,345,394 Ops/sec
apply
5,640,454 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"]);