Tests:

Historical Performance Data aggregated from 7 community runs

Desktop Results:
Chrome 7 runs
Math.random
95.5M/s
crypto API
795K/s
Uuid
743K/s

Fastest: Math.random (128.6x faster)

View exact numbers
  • Math.random: 95,520,136 ops/sec
  • crypto API: 794,764 ops/sec
  • Uuid: 742,698 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
    Math.random
    crypto API
    Uuid

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 7 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.1 Safari/605.1.15
Safari 26 on Mac OS X 10.15.7
View result in a separate tab
Math.random
429.0M/s
Uuid
11.4M/s
crypto API
6.3M/s
View exact numbers
Test name Executions per second
Math.random 428,968,832 Ops/sec
Uuid 11,395,888 Ops/sec
crypto API 6,261,024 Ops/sec