Tests:
  • Math.random()

  • crypto.getRandomValues()

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Math.random()
    crypto.getRandomValues()

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 7 days ago)
Mozilla/5.0 (iPhone; CPU iPhone OS 18_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) FxiOS/133.0 Mobile/15E148 Safari/605.1.15
Mobile Safari 18 on iOS 18.2
View result in a separate tab
Test name Executions per second
Math.random() 326548352.0 Ops/sec
crypto.getRandomValues() 3739616.0 Ops/sec