Update 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 e3dfef9 · Browse files · 4 files·+56 added−56 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
4 files+56 added−56 removed
- other:+56 added−56 removed
Provenance
- Commit
69995ab- Tree
3e1fa6a- Author
Andrey Sitnik <andrey@sitnik.ru>- Committer
Andrey Sitnik <andrey@sitnik.ru>- Parent
e3dfef9
4 files changed+56 added−56 removed
modified:README.id-ID.md+14 added-14 removed
65 unmodified lines66 ## Benchmark67 68 ```rust69 $ node ./test/benchmark.js70-crypto.randomUUID 28,398,328 ops/sec71-uuid v4 10,254,199 ops/sec72-@napi-rs/uuid 15,110,625 ops/sec73-uid/secure 10,388,842 ops/sec74-@lukeed/uuid 8,914,507 ops/sec75-nanoid 7,484,029 ops/sec76-customAlphabet 4,867,017 ops/sec77-nanoid for browser 609,426 ops/sec78-secure-random-string 539,080 ops/sec79-uid-safe.sync 533,944 ops/sec80-shortid 59,609 ops/sec70+crypto.randomUUID 7,619,041 ops/sec71+uuid v4 7,436,626 ops/sec72+@napi-rs/uuid 4,730,614 ops/sec73+uid/secure 4,729,185 ops/sec74+@lukeed/uuid 4,015,673 ops/sec75+nanoid 3,693,964 ops/sec76+customAlphabet 2,799,255 ops/sec77+nanoid for browser 380,915 ops/sec78+secure-random-string 362,316 ops/sec79+uid-safe.sync 354,234 ops/sec80+shortid 38,808 ops/sec81 82 Non-secure:83-uid 95,579,977 ops/sec84-nanoid/non-secure 3,999,766 ops/sec85-rndm 3,981,914 ops/sec83+uid 11,872,105 ops/sec84+nanoid/non-secure 2,226,483 ops/sec85+rndm 2,308,044 ops/sec86 ```87 88 Konfigurasi pengujian: Framework 13 7840U, Fedora 39, Node.js 21.6.89 258 unmodified linesmodified:README.md+14 added-14 removed
75 unmodified lines76 ## Benchmark77 78 ```rust79 $ node ./test/benchmark.js80-crypto.randomUUID 28,398,328 ops/sec81-uuid v4 10,254,199 ops/sec82-@napi-rs/uuid 15,110,625 ops/sec83-uid/secure 10,388,842 ops/sec84-@lukeed/uuid 8,914,507 ops/sec85-nanoid 7,484,029 ops/sec86-customAlphabet 4,867,017 ops/sec87-nanoid for browser 609,426 ops/sec88-secure-random-string 539,080 ops/sec89-uid-safe.sync 533,944 ops/sec90-shortid 59,609 ops/sec80+crypto.randomUUID 7,619,041 ops/sec81+uuid v4 7,436,626 ops/sec82+@napi-rs/uuid 4,730,614 ops/sec83+uid/secure 4,729,185 ops/sec84+@lukeed/uuid 4,015,673 ops/sec85+nanoid 3,693,964 ops/sec86+customAlphabet 2,799,255 ops/sec87+nanoid for browser 380,915 ops/sec88+secure-random-string 362,316 ops/sec89+uid-safe.sync 354,234 ops/sec90+shortid 38,808 ops/sec91 92 Non-secure:93-uid 95,579,977 ops/sec94-nanoid/non-secure 3,999,766 ops/sec95-rndm 3,981,914 ops/sec93+uid 11,872,105 ops/sec94+nanoid/non-secure 2,226,483 ops/sec95+rndm 2,308,044 ops/sec96 ```97 98 Test configuration: Framework 13 7840U, Fedora 39, Node.js 21.6.99 354 unmodified linesmodified:README.ru.md+14 added-14 removed
80 unmodified lines81 ## Сравнение производительности82 83 ```rust84 $ node ./test/benchmark.js85-crypto.randomUUID 28,398,328 ops/sec86-uuid v4 10,254,199 ops/sec87-@napi-rs/uuid 15,110,625 ops/sec88-uid/secure 10,388,842 ops/sec89-@lukeed/uuid 8,914,507 ops/sec90-nanoid 7,484,029 ops/sec91-customAlphabet 4,867,017 ops/sec92-nanoid for browser 609,426 ops/sec93-secure-random-string 539,080 ops/sec94-uid-safe.sync 533,944 ops/sec95-shortid 59,609 ops/sec85+crypto.randomUUID 7,619,041 ops/sec86+uuid v4 7,436,626 ops/sec87+@napi-rs/uuid 4,730,614 ops/sec88+uid/secure 4,729,185 ops/sec89+@lukeed/uuid 4,015,673 ops/sec90+nanoid 3,693,964 ops/sec91+customAlphabet 2,799,255 ops/sec92+nanoid for browser 380,915 ops/sec93+secure-random-string 362,316 ops/sec94+uid-safe.sync 354,234 ops/sec95+shortid 38,808 ops/sec96 97 Non-secure:98-uid 95,579,977 ops/sec99-nanoid/non-secure 3,999,766 ops/sec100-rndm 3,981,914 ops/sec98+uid 11,872,105 ops/sec99+nanoid/non-secure 2,226,483 ops/sec100+rndm 2,308,044 ops/sec101 ```102 103 Среда сравнения: Framework 13 7840U, Fedora 39, Node.js 21.6.104 326 unmodified linesmodified:README.zh-CN.md+14 added-14 removed
71 unmodified lines72 ## 基准值73 74 ```rust75 $ node ./test/benchmark.js76-crypto.randomUUID 28,398,328 ops/sec77-uuid v4 10,254,199 ops/sec78-@napi-rs/uuid 15,110,625 ops/sec79-uid/secure 10,388,842 ops/sec80-@lukeed/uuid 8,914,507 ops/sec81-nanoid 7,484,029 ops/sec82-customAlphabet 4,867,017 ops/sec83-nanoid for browser 609,426 ops/sec84-secure-random-string 539,080 ops/sec85-uid-safe.sync 533,944 ops/sec86-shortid 59,609 ops/sec76+crypto.randomUUID 7,619,041 ops/sec77+uuid v4 7,436,626 ops/sec78+@napi-rs/uuid 4,730,614 ops/sec79+uid/secure 4,729,185 ops/sec80+@lukeed/uuid 4,015,673 ops/sec81+nanoid 3,693,964 ops/sec82+customAlphabet 2,799,255 ops/sec83+nanoid for browser 380,915 ops/sec84+secure-random-string 362,316 ops/sec85+uid-safe.sync 354,234 ops/sec86+shortid 38,808 ops/sec87 88 Non-secure:89-uid 95,579,977 ops/sec90-nanoid/non-secure 3,999,766 ops/sec91-rndm 3,981,914 ops/sec89+uid 11,872,105 ops/sec90+nanoid/non-secure 2,226,483 ops/sec91+rndm 2,308,044 ops/sec92 ```93 94 测试配置: Framework 13 7840U, Fedora 39, Node.js 21.6.95 328 unmodified lines