Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
filter vs slice - remove first
(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: 100},()=>Math.random())
Tests:
slice
test.slice(1)
filter
test.filter((e,i) => i !== 0)
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 2
Shorten array -- slice vs filter
slice vs filter for index filtering
Remove first element from array - slice vs filter
Comments
Confirm delete:
Do you really want to delete benchmark?