Script Preparation code:
Tests:

Historical Performance Data aggregated from 38 community runs

Desktop Results:
Chrome 38 runs
date.getTime()
2.1M/s
crypto.randomUUID()
4K/s

Fastest: date.getTime() (496.6x faster)

View exact numbers
  • date.getTime(): 2,077,756 ops/sec
  • crypto.randomUUID(): 4,184 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
    date.getTime()
    crypto.randomUUID()

    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/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36
Chrome 144 on Mac OS X 10.15.7
View result in a separate tab
date.getTime()
3.4M/s
crypto.randomUUID()
5K/s
View exact numbers
Test name Executions per second
date.getTime() 3,447,517 Ops/sec
crypto.randomUUID() 4,568 Ops/sec