Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.6 Safari/605.1.15
Safari 17
Mac OS X 10.15.7
Desktop
2 months ago
Test name Executions per second
uuidv1 4370374.0 Ops/sec
uuidv4 5070547.5 Ops/sec
ulid 288459.4 Ops/sec
cuid2 90705.3 Ops/sec
cuid2_32 64764.1 Ops/sec
nanoid 1102334.1 Ops/sec
crypto.randomUUID 5541859.5 Ops/sec
HTML Preparation code:
Tests:
  • uuidv1

  • uuidv4

  • ulid

  • cuid2

  • cuid2_32

  • nanoid

  • crypto.randomUUID


;