Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Direct call vs bind vs call vs apply vs static bind
(version: 0)
Comparing performance of:
direct call vs bind vs call vs apply vs static bind
Created:
one year ago
by:
Guest
Jump to the latest result
Script Preparation code:
function test(msg) { var d = msg; } const testBound = test.bind(null);
Tests:
direct call
test("Hello");
bind
test.bind(null, "Hello")();
call
test.call(null, "Hello");
apply
test.apply(null, ["Hello"]);
static bind
testBound("Hello");
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (5)
Previous results
Fork
Test case name
Result
direct call
bind
call
apply
static bind
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Comments
Confirm delete:
Do you really want to delete benchmark?