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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.0.0 Safari/537.36
Browser:
Chrome 148
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
2 months ago
call
171.2M/s
direct call
169.0M/s
apply
168.1M/s
bind
167.8M/s
View exact numbers
Test name
Executions per second
✓
call
171,205,232 Ops/sec
direct call
168,959,520 Ops/sec
apply
168,051,344 Ops/sec
bind
167,809,488 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"]);