Run details:
Mozilla/5.0 (Android 10; Mobile; rv:109.0) Gecko/112.0 Firefox/112.0
Firefox Mobile 112
Android
Mobile
one year ago
Test name Executions per second
Math.random() 563408900.0 Ops/sec
crypto.getRandomValues() 785894.3 Ops/sec
Math.floor(Math.random()) 506487400.0 Ops/sec
Tests:
  • Math.random()

  • crypto.getRandomValues()

  • Math.floor(Math.random())