Skip to content
Myr

Fix tool name in 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 140d2df · Browse files · 5 files+18 added−18 removed
This commit

State

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

Diff stats

5 files+18 added−18 removed

  • tests:+5 added−5 removed
  • other:+13 added−13 removed

5 files+18 added−18 removed

modified:test/benchmark.js+5 added-5 removed
modified:index.js+1 added-1 removed
modified:README.md+2 added-2 removed
84 unmodified lines
85nanoid 4,975,393 ops/sec86customAlphabet 2,717,877 ops/sec87uuid v4 1,778,339 ops/sec88crypto.randomUUID 598,226 ops/sec89uid.sync 391,311 ops/sec89uid-safe.sync 391,311 ops/sec90secure-random-string 372,537 ops/sec91cuid 201,645 ops/sec92shortid 50,462 ops/sec9394Async:95async nanoid 95,500 ops/sec96async customAlphabet 93,800 ops/sec97async secure-random-string 90,316 ops/sec98uid 85,583 ops/sec98uid-safe 85,583 ops/sec99100Non-secure:101non-secure nanoid 2,641,654 ops/sec102rndm 2,447,086 ops/sec
420 unmodified lines
modified:README.ru.md+2 added-2 removed
90 unmodified lines
91nanoid 4,975,393 ops/sec92customAlphabet 2,717,877 ops/sec93uuid v4 1,778,339 ops/sec94crypto.randomUUID 598,226 ops/sec95uid.sync 391,311 ops/sec95uid-safe.sync 391,311 ops/sec96secure-random-string 372,537 ops/sec97cuid 201,645 ops/sec98shortid 50,462 ops/sec99100Async:101async nanoid 95,500 ops/sec102async customAlphabet 93,800 ops/sec103async secure-random-string 90,316 ops/sec104uid 85,583 ops/sec104uid-safe 85,583 ops/sec105106Non-secure:107non-secure nanoid 2,641,654 ops/sec108rndm 2,447,086 ops/sec
406 unmodified lines
modified:README.zh-CN.md+8 added-8 removed
80 unmodified lines
81## 基准值8283```rust84$ node ./test/benchmark.js85nanoid 2,280,683 ops/sec86customAlphabet 1,851,117 ops/sec87uuid v4 1,348,425 ops/sec85nanoid 4,975,393 ops/sec86customAlphabet 2,717,877 ops/sec87uuid v4 1,778,339 ops/sec88crypto.randomUUID 598,226 ops/sec89uid.sync 313,306 ops/sec90secure-random-string 294,161 ops/sec91cuid 158,988 ops/sec92shortid 37,222 ops/sec89uid-safe.sync 391,311 ops/sec90secure-random-string 372,537 ops/sec91cuid 201,645 ops/sec92shortid 50,462 ops/sec9394Async:95async nanoid 95,500 ops/sec96async customAlphabet 93,800 ops/sec97async secure-random-string 90,316 ops/sec98uid 85,583 ops/sec98uid-safe 85,583 ops/sec99100Non-secure:101non-secure nanoid 2,641,654 ops/sec102rndm 2,447,086 ops/sec
409 unmodified lines