Script Preparation code:
Tests:

Historical Performance Data aggregated from 23 community runs

Desktop Results:
Chrome 23 runs
Test new Uint8Array()
1.2M/s
Test Uint8Array.from()
1.1M/s
View exact numbers
  • Test new Uint8Array(): 1,150,502 ops/sec
  • Test Uint8Array.from(): 1,081,445 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
    Test new Uint8Array()
    Test Uint8Array.from()

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.0.0 Safari/537.36
Chrome 148 on Mac OS X 10.15.7
View result in a separate tab
Test Uint8Array.from()
1.2M/s
Test new Uint8Array()
1.2M/s
View exact numbers
Test name Executions per second
Test Uint8Array.from() 1,218,778 Ops/sec
Test new Uint8Array() 1,213,124 Ops/sec