Script Preparation code:
Tests:

Historical Performance Data aggregated from 54 community runs

Desktop Results:
Chrome 34 runs
Plain JS array
294K/s
Int16Array
290K/s
View exact numbers
  • Plain JS array: 293,740 ops/sec
  • Int16Array: 289,851 ops/sec
Firefox 20 runs
Int16Array
18.5M/s
Plain JS array
13.1M/s

Fastest: Int16Array (1.4x faster)

View exact numbers
  • Int16Array: 18,537,920 ops/sec
  • Plain JS array: 13,147,379 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
    Int16Array
    Plain JS array

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: yesterday)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/153.0.0.0 Safari/537.36
Chrome 153 on Linux
View result in a separate tab
Int16Array
9.0M/s
Plain JS array
6.0M/s
View exact numbers
Test name Executions per second
Int16Array 8,962,551 Ops/sec
Plain JS array 5,995,764 Ops/sec