Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
apply vs call vs bind vs spread working
(version: 0)
Comparing performance of:
apply vs call vs bind vs spread vs call + spread vs bind + spread
Created:
2 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
const numbers = [5, 6, 2, 3, 7];
Tests:
apply
Math.max.apply(null, numbers);
call
Math.max.call(null, 5, 6, 2, 3, 7);
bind
Math.max.bind(null, 5, 6, 2, 3, 7)();
spread
Math.max(...numbers);
call + spread
Math.max.call(null, ...numbers);
bind + spread
Math.max.bind(null, ...numbers)();
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (6)
Previous results
Fork
Test case name
Result
apply
call
bind
spread
call + spread
bind + spread
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?