Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
unshift123
(version: 0)
Comparing performance of:
[123].concat(a) vs splice vs reverse.push.reverse vs unshift vs print a
Created:
5 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
a = [1,2,3,4,5]
Tests:
[123].concat(a)
[123].concat(a)
splice
a.splice(0,0,123)
reverse.push.reverse
a.reverse().push(123) a.reverse()
unshift
a.unshift(123)
print a
console.log(a)
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (5)
Previous results
Fork
Test case name
Result
[123].concat(a)
splice
reverse.push.reverse
unshift
print a
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:
concat vs spread funcking operator
Diffs between mapping array and keys of array
Test reverse map and forEach
testoffors
spread vs concat vs unshift vs flat v2
Comments
Confirm delete:
Do you really want to delete benchmark?