Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Remove array element, findIndex and splice vs filter
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:6.8) Goanna/20260301 PaleMoon/34.1.0
Browser:
Pale Moon (Firefox Variant) 34
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one month ago
Test name
Executions per second
Splice
1521356.1 Ops/sec
Filter
26139738.0 Ops/sec
Tests:
Splice
const a = ["a", "b", "c", "d", "e"]; const indexToRemove = a.findIndex(i => i === "d"); const b = a.splice(indexToRemove, 1);
Filter
const a = ["a", "b", "c", "d", "e"]; const b = a.filter(item => item !== "d")