Script Preparation code:
Tests:

Historical Performance Data aggregated from 11 community runs

Desktop Results:
Chrome 11 runs
math random
15.6M/s
uuid lib v4
1.2M/s
crypto random values
885K/s
crypto uuid
864K/s

Fastest: math random (18.0x faster)

View exact numbers
  • math random: 15,557,753 ops/sec
  • uuid lib v4: 1,203,645 ops/sec
  • crypto random values: 884,790 ops/sec
  • crypto uuid: 863,913 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
    uuid lib v4
    math random
    crypto random values
    crypto uuid

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 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
math random
327.3M/s
crypto uuid
6.0M/s
crypto random values
3.6M/s
uuid lib v4
1.9M/s
View exact numbers
Test name Executions per second
math random 327,294,656 Ops/sec
crypto uuid 5,958,198 Ops/sec
crypto random values 3,629,526 Ops/sec
uuid lib v4 1,931,522 Ops/sec