Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Direct call vs bind vs closure
(version: 1)
Comparing performance of:
direct call vs bind vs call
Created:
3 months ago
by:
Guest
Jump to the latest result
Script Preparation code:
function test(msg) { var d = msg; }
Tests:
direct call
test("Hello");
bind
test.bind(null, "Hello")();
call
(() => test("hello"))()
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (3)
Previous results
Fork
Test case name
Result
direct call
bind
call
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
3 months ago
)
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36 Edg/143.0.0.0
Browser/OS:
Chrome 143 on Mac OS X 10.15.7
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
direct call
216982544.0 Ops/sec
bind
134885136.0 Ops/sec
call
191819568.0 Ops/sec
Related benchmarks:
Direct call vs bind vs call vs apply
Direct call vs bind vs call vs apply (don't re-create bound function every time)
Direct call vs bind vs call vs apply 2
Direct call vs bind vs call vs apply vs prebind
direct vs bind vs apply vs call
Direct call vs saved bind vs inline bind vs call vs apply vs closure
Direct call vs bind vs call vs apply foosssdsad
Direct call vs bind vs call vs apply foosssdsad aas
Direct call vs bind vs call vs apply foosssdsad aasa
Direct call vs bind vs call vs apply vs static bound
Comments
Confirm delete:
Do you really want to delete benchmark?