Script Preparation code:
Tests:

Historical Performance Data aggregated from 17 community runs

Desktop Results:
Chrome 12 runs
Uint8Array by byte
18.0M/s
Uint8Array with set
817K/s

Fastest: Uint8Array by byte (22.0x faster)

View exact numbers
  • Uint8Array by byte: 18,007,732 ops/sec
  • Uint8Array with set: 817,024 ops/sec
Firefox 5 runs
Uint8Array by byte
1384.9M/s
Uint8Array with set
918K/s

Fastest: Uint8Array by byte (1509.2x faster)

View exact numbers
  • Uint8Array by byte: 1,384,860,416 ops/sec
  • Uint8Array with set: 917,607 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
    Uint8Array by byte
    Uint8Array with set

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36 Edg/137.0.0.0
Chrome 137 on Windows
View result in a separate tab
Uint8Array by byte
96.7M/s
Uint8Array with set
1.0M/s
View exact numbers
Test name Executions per second
Uint8Array by byte 96,664,152 Ops/sec
Uint8Array with set 1,018,248 Ops/sec