Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
test arr rapidity
(version: 0)
Comparing performance of:
splice vs filter
Created:
3 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
var arr = [{ lorem: 'ipsum'}, { dolor: 'sit'}, { foo: 'bar' }, { bar: 'foo' } ]
Tests:
splice
const test = arr.splice(2, 1)
filter
const test = arr.filter((x, index) => index !== 2)
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
splice
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:
arr test
Array: get last item
array at vs classic
werwerwe
Comments
Confirm delete:
Do you really want to delete benchmark?