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 (Windows NT 6.2; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0
Browser:
Firefox 115
Operating system:
Windows 8
Device Platform:
Desktop
Date tested:
2 years ago
Benchmark engine:
Benchmark.js
call
161.9M/s
direct call
117.3M/s
apply
17.0M/s
bind
6.6M/s
View exact numbers
Test name
Executions per second
✓
call
161,894,352 Ops/sec
direct call
117,309,728 Ops/sec
apply
16,989,236 Ops/sec
bind
6,594,165 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"]);