Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Safari/605.1.15
Safari 14
Mac OS X 10.15.6
Desktop
3 years ago
Test name Executions per second
Jeff Ward v7 471863.4 Ops/sec
Jon Surrell (not real UUID) 332289.4 Ops/sec
Broofa (new) 42532.0 Ops/sec
Broofa (old) 145181.1 Ops/sec
My Test 747772.4 Ops/sec
Jeff Ward v7 window.crypto 466478.5 Ops/sec
My Test v2 (array.join) 586379.0 Ops/sec
URL.createObjectURL 135038.6 Ops/sec
NPM uuid 1069497.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Jeff Ward v7

  • Jon Surrell (not real UUID)

  • Broofa (new)

  • Broofa (old)

  • My Test

  • Jeff Ward v7 window.crypto

  • My Test v2 (array.join)

  • URL.createObjectURL

  • NPM uuid