Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Direct call vs bind vs call vs apply with bound options
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36
Browser:
Chrome 136
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
bind
111.8M/s
call
111.1M/s
apply
49.6M/s
direct call
5.5M/s
View exact numbers
Test name
Executions per second
✓
bind
111,790,376 Ops/sec
call
111,138,976 Ops/sec
apply
49,647,324 Ops/sec
direct call
5,489,935 Ops/sec
Script Preparation code:
function test(msg) { var d = this.hello + msg } let opts = { hello:1, world:2 }
Tests:
direct call
test("Hello");
bind
test.bind(opts, "Hello")();
call
test.call(opts, "Hello");
apply
test.apply(opts, ["Hello"]);