Skip to content
Myr

Fix cuid benchmark

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Andrey Sitnik · committed by Andrey Sitnik · parent 45b46cf · Browse files · 2 files+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+2 added−2 removed

  • tests:+1 added−1 removed
  • other:+1 added−1 removed

2 files+2 added−2 removed

modified:test/benchmark+1 added-1 removed
39 unmodified lines
40 .add('secure-random-string', () => {41 srs()42 })43 .add('cuid', () => {44 shortid()44 cuid()45 })46 .add('shortid', () => {47 shortid()48 })
49 unmodified lines
modified:README.md+1 added-1 removed
81 unmodified lines
82customAlphabet 635,421 ops/sec83uid.sync 375,816 ops/sec84uuid v4 396,756 ops/sec85secure-random-string 366,434 ops/sec86cuid 183,998 ops/sec87shortid 59,343 ops/sec87cuid 55,025 ops/sec8889Async:90async nanoid 101,966 ops/sec91async customAlphabet 102,471 ops/sec
319 unmodified lines