Script Preparation code:
Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Firefox 5 runs
Array.toSpliced
95K/s
Array.filter
12K/s

Fastest: Array.toSpliced (7.8x faster)

View exact numbers
  • Array.toSpliced: 94,984 ops/sec
  • Array.filter: 12,224 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Array.toSpliced
    Array.filter

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 8 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36
Chrome 142 on Windows
View result in a separate tab
Array.toSpliced
476K/s
Array.filter
23K/s
View exact numbers
Test name Executions per second
Array.toSpliced 476,026 Ops/sec
Array.filter 22,651 Ops/sec