Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
bind vs lambda
(version: 1)
Comparing performance of:
direct call vs bind
Created:
one year ago
by:
Guest
Jump to the latest result
Script Preparation code:
function dosmthg(msg) { console.log(this, msg); } const test1 = (msg) => { dosmthg(msg); } const test2 = dosmthg.bind(this);
Tests:
direct call
test1("World");
bind
test2("World");
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
direct call
bind
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
3 months ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:147.0) Gecko/20100101 Firefox/147.0
Browser/OS:
Firefox 147 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
direct call
259289.4 Ops/sec
bind
266817.5 Ops/sec
Related benchmarks:
Direct call vs bind vs call vs apply
Bind vs Callback
Direct call vs bind vs call vs apply (with specified object)
Direct call vs bind vs call vs apply vs prebind
Direct call v bind
Direct call vs bind vs call vs apply without alloc 2
Direct call vs bind vs call vs apply foosssdsad aas
Direct call vs bind calls
Direct call vs bind vs call vs apply vs static bound
Comments
Confirm delete:
Do you really want to delete benchmark?