Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Pass through arguments: Spread vs. Spread fn vs. Apply
(version: 1)
Comparing performance of:
Spread vs Spread fn vs Apply
Created:
one year ago
by:
Guest
Jump to the latest result
Script Preparation code:
const fn = () => 1+1
Tests:
Spread
const run = (...args) => fn(...args)
Spread fn
const run = function (...args) { return fn(...args); }
Apply
const run = function () { return fn.apply(null, arguments); }
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (3)
Previous results
Fork
Test case name
Result
Spread
Spread fn
Apply
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?