Script Preparation code:
Tests:

Historical Performance Data aggregated from 106 community runs

Desktop Results:
Chrome 84 runs
Uint8Array by byte
38.5M/s
DataView
38.4M/s
Uint8Array with set
858K/s
with Float64Array
733K/s

Fastest: Uint8Array by byte (52.6x faster)

View exact numbers
  • Uint8Array by byte: 38,498,392 ops/sec
  • DataView: 38,420,432 ops/sec
  • Uint8Array with set: 858,184 ops/sec
  • with Float64Array: 732,604 ops/sec
Firefox 13 runs
Uint8Array by byte
1218.1M/s
DataView
1212.2M/s
Uint8Array with set
795K/s
with Float64Array
702K/s

Fastest: Uint8Array by byte (1736.5x faster)

View exact numbers
  • Uint8Array by byte: 1,218,149,504 ops/sec
  • DataView: 1,212,238,976 ops/sec
  • Uint8Array with set: 794,758 ops/sec
  • with Float64Array: 701,511 ops/sec
Mobile Results:
Chrome 9 runs
Uint8Array by byte
12.2M/s
DataView
12.2M/s
Uint8Array with set
662K/s
with Float64Array
439K/s

Fastest: Uint8Array by byte (27.7x faster)

View exact numbers
  • Uint8Array by byte: 12,186,087 ops/sec
  • DataView: 12,163,494 ops/sec
  • Uint8Array with set: 661,659 ops/sec
  • with Float64Array: 439,278 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
    DataView
    Uint8Array by byte
    Uint8Array with set
    with Float64Array

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36
Chrome 149 on Windows
View result in a separate tab
Uint8Array by byte
160.7M/s
DataView
160.1M/s
Uint8Array with set
970K/s
with Float64Array
929K/s
View exact numbers
Test name Executions per second
Uint8Array by byte 160,656,048 Ops/sec
DataView 160,057,120 Ops/sec
Uint8Array with set 970,046 Ops/sec
with Float64Array 928,688 Ops/sec