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 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Browser:
Chrome 120
Operating system:
Chrome OS 14541.0.0
Device Platform:
Desktop
Date tested:
2 years ago
Benchmark engine:
Benchmark.js
direct call
34.0M/s
bind
31.7M/s
call
31.0M/s
apply
30.2M/s
View exact numbers
Test name
Executions per second
✓
direct call
34,040,552 Ops/sec
bind
31,675,294 Ops/sec
call
30,993,844 Ops/sec
apply
30,210,730 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"]);