Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
jklfdjlkfdjlsfoidlfkjdf
(version: 1)
Comparing performance of:
direct call vs bind
Created:
2 months ago
by:
Guest
Go to the latest result
Script Preparation code:
function test(msg, b) { return msg + "Asdfdsf" + b; } var arrow = (x) => test("adsfdf", x); var boundTest = test.bind(null, "adsfdf")
Tests:
direct call
arrow("hello");
bind
boundTest("hello");
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:
2 months ago
)
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/OS:
Chrome 148 on Mac OS X 10.15.7
View result in a separate tab
Embed
Embed Benchmark Result
bind
169.4M/s
direct call
157.2M/s
View exact numbers
Test name
Executions per second
✓
bind
169,444,176 Ops/sec
direct call
157,223,056 Ops/sec
Related benchmarks
Closure vs arrow function
Direct call vs bind vs call vs apply vs static bound
Direct call vs bound call vs call vs apply
Arrow call vs bind vs call vs apply with bound options
Comments
Confirm delete:
Do you really want to delete benchmark?