Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
Direct call vs bind vs call vs apply
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (iPhone; CPU iPhone OS 15_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Mobile/15E148 Safari/604.1
Browser:
Mobile Safari 15
Operating system:
iOS 15.3.1
Device Platform:
Mobile
Date tested:
2 years ago
Benchmark engine:
Benchmark.js
call
19.8M/s
direct call
19.6M/s
apply
18.9M/s
bind
8.5M/s
View exact numbers
Test name
Executions per second
✓
call
19,809,106 Ops/sec
direct call
19,588,208 Ops/sec
apply
18,889,964 Ops/sec
bind
8,534,300 Ops/sec
Script Preparation code:
function test(msg) { var d = msg; }
Tests:
direct call
test("Hello");
bind
test.bind(null, "Hello")();
call
test.call(null, "Hello");
apply
test.apply(null, ["Hello"]);