Script Preparation code:
Tests:

Historical Performance Data aggregated from 7 community runs

Desktop Results:
Chrome 7 runs
slice
124K/s
reduce
107K/s
moving array
104K/s

Fastest: slice (1.2x faster)

View exact numbers
  • slice: 123,761 ops/sec
  • reduce: 107,301 ops/sec
  • moving array: 104,217 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
    moving array
    slice
    reduce

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Chrome 134 on Mac OS X 10.15.7
View result in a separate tab
reduce
2.4M/s
slice
371K/s
moving array
236K/s
View exact numbers
Test name Executions per second
reduce 2,358,785 Ops/sec
slice 370,543 Ops/sec
moving array 236,278 Ops/sec