Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
directcall vs bind vs lambda
(version: 1)
Comparing performance of:
direct call vs bind vs directcall
Created:
one year ago
by:
Guest
Jump to the latest result
Script Preparation code:
const a = 0; function dosmthg() { a++; } const test1 = () => { dosmthg(); } const test2 = dosmthg.bind(this);
Tests:
direct call
test1(); console.log(a);
bind
test2(); console.log(a);
directcall
dosmthg(); console.log(a);
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (3)
Previous results
Fork
Test case name
Result
direct call
bind
directcall
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?