Script Preparation code:
AخA
 
var randomArray = Array.from({ length: 1000 }, () => Math.floor(Math.random() * 256))
Tests:
  • Test new Uint8Array()

     
    new Uint8Array(randomArray)
  • Test Uint8Array.from()

     
    Uint8Array.from(randomArray)
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Test new Uint8Array()
    Test Uint8Array.from()

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 28 days ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Chrome 133 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
Test new Uint8Array() 1787336.9 Ops/sec
Test Uint8Array.from() 1663558.9 Ops/sec