Script Preparation code:
Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Chrome 5 runs
Uint8ClampedArray
109.8M/s
Uint8Array
99.6M/s

Fastest: Uint8ClampedArray (1.1x faster)

View exact numbers
  • Uint8ClampedArray: 109,841,544 ops/sec
  • Uint8Array: 99,562,096 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
    Uint8ClampedArray

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 months ago)
Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.7.2 Mobile/15E148 Safari/604.1
Mobile Safari 18 on iOS 18.7
View result in a separate tab
Uint8Array
214.6M/s
Uint8ClampedArray
205.3M/s
View exact numbers
Test name Executions per second
Uint8Array 214,611,648 Ops/sec
Uint8ClampedArray 205,275,744 Ops/sec