Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
slice vs filter 500
(version: 0)
Comparing performance of:
slice vs filter
Created:
4 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
var test=Array.from({length: 500},()=>Math.random())
Tests:
slice
[...test.slice(0,50),...test.slice(51)]
filter
test.filter((e,i)=>i < 50).concat(test.filter((e,i)=>i > 50))
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
slice
filter
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 filter more than 1000
Slice vs Filter (sp)
slice vs filter (10000000)
Shorten array -- slice vs filter
slice vs filter for index filtering
Comments
Confirm delete:
Do you really want to delete benchmark?