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 1004590.2 Ops/sec
uuidv1 5480974.5 Ops/sec
ulid 83636.2 Ops/sec
cuid2 94211.9 Ops/sec
cuid2_32 64321.2 Ops/sec
nanoid 648364.5 Ops/sec
crypto.randomUUID() 942130.2 Ops/sec
uid 6070156.5 Ops/sec
HTML Preparation code:
Tests:
  • uuidv4

  • uuidv1

  • ulid

  • cuid2

  • cuid2_32

  • nanoid

  • crypto.randomUUID()

  • uid


;