Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Chrome 120
Mac OS X 10.15.7
Desktop
11 months ago
Test name Executions per second
uuidv4 1007825.4 Ops/sec
uuidv1 5383715.0 Ops/sec
ulid 82846.3 Ops/sec
cuid2 95460.0 Ops/sec
cuid2_32 62763.1 Ops/sec
nanoid 510980.3 Ops/sec
crypto.randomUUID() 921780.2 Ops/sec
uid 5914395.0 Ops/sec
HTML Preparation code:
Tests:
  • uuidv4

  • uuidv1

  • ulid

  • cuid2

  • cuid2_32

  • nanoid

  • crypto.randomUUID()

  • uid


;