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
Go 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:
6 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
bind
267K/s
direct call
259K/s
View exact numbers
Test name
Executions per second
✓
bind
266,818 Ops/sec
direct call
259,289 Ops/sec
Related benchmarks
Direct call vs bind vs call vs apply (with specified object)
Direct call vs bind vs call vs apply vs static bound
Comments
Confirm delete:
Do you really want to delete benchmark?