Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Slice - Splice (1)
(version: 0)
Comparing performance of:
Slice vs Splice
Created:
4 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
var arrayData = [1,2,3,4,5,6,7,8,9,0]
Tests:
Slice
`(${arrayData.slice(0,3).join('')}) ${arrayData.slice(3,6).join('')}-${arrayData.slice(6).join('')}`
Splice
`(${arrayData.splice(0,3).join('')}) ${arrayData.splice(0,3).join('')}-${arrayData.join('')}`
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Slice
Splice
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:
Slice vs splice
Slice vs splice forked
Slice vs splice___
Splice vs Assignation
Comments
Confirm delete:
Do you really want to delete benchmark?