Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
My first test
(version: 0)
speed test
Comparing performance of:
SPREAD vs UNSHIFT
Created:
3 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
var arr1 = ["a", "b", "c", "d"];
Tests:
SPREAD
var result = [...["x", "y", "z"], ...arr1];
UNSHIFT
var result = arr1.unshift("x", "y", "z");
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
SPREAD
UNSHIFT
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!
Related benchmarks:
Copy Array
Get last element of array2
Clone Array - 08/02/2024
empty an array in JavaScript and then reassign again
Comments
Confirm delete:
Do you really want to delete benchmark?