Skip to content
Myr

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

4 files+56 added−56 removed

modified:README.id-ID.md+14 added-14 removed
65 unmodified lines
66## Benchmark6768```rust69$ node ./test/benchmark.js70crypto.randomUUID 28,398,328 ops/sec71uuid v4 10,254,199 ops/sec72@napi-rs/uuid 15,110,625 ops/sec73uid/secure 10,388,842 ops/sec74@lukeed/uuid 8,914,507 ops/sec75nanoid 7,484,029 ops/sec76customAlphabet 4,867,017 ops/sec77nanoid for browser 609,426 ops/sec78secure-random-string 539,080 ops/sec79uid-safe.sync 533,944 ops/sec80shortid 59,609 ops/sec70crypto.randomUUID 7,619,041 ops/sec71uuid v4 7,436,626 ops/sec72@napi-rs/uuid 4,730,614 ops/sec73uid/secure 4,729,185 ops/sec74@lukeed/uuid 4,015,673 ops/sec75nanoid 3,693,964 ops/sec76customAlphabet 2,799,255 ops/sec77nanoid for browser 380,915 ops/sec78secure-random-string 362,316 ops/sec79uid-safe.sync 354,234 ops/sec80shortid 38,808 ops/sec8182Non-secure:83uid 95,579,977 ops/sec84nanoid/non-secure 3,999,766 ops/sec85rndm 3,981,914 ops/sec83uid 11,872,105 ops/sec84nanoid/non-secure 2,226,483 ops/sec85rndm 2,308,044 ops/sec86```8788Konfigurasi pengujian: Framework 13 7840U, Fedora 39, Node.js 21.6.89
258 unmodified lines
modified:README.md+14 added-14 removed
75 unmodified lines
76## Benchmark7778```rust79$ node ./test/benchmark.js80crypto.randomUUID 28,398,328 ops/sec81uuid v4 10,254,199 ops/sec82@napi-rs/uuid 15,110,625 ops/sec83uid/secure 10,388,842 ops/sec84@lukeed/uuid 8,914,507 ops/sec85nanoid 7,484,029 ops/sec86customAlphabet 4,867,017 ops/sec87nanoid for browser 609,426 ops/sec88secure-random-string 539,080 ops/sec89uid-safe.sync 533,944 ops/sec90shortid 59,609 ops/sec80crypto.randomUUID 7,619,041 ops/sec81uuid v4 7,436,626 ops/sec82@napi-rs/uuid 4,730,614 ops/sec83uid/secure 4,729,185 ops/sec84@lukeed/uuid 4,015,673 ops/sec85nanoid 3,693,964 ops/sec86customAlphabet 2,799,255 ops/sec87nanoid for browser 380,915 ops/sec88secure-random-string 362,316 ops/sec89uid-safe.sync 354,234 ops/sec90shortid 38,808 ops/sec9192Non-secure:93uid 95,579,977 ops/sec94nanoid/non-secure 3,999,766 ops/sec95rndm 3,981,914 ops/sec93uid 11,872,105 ops/sec94nanoid/non-secure 2,226,483 ops/sec95rndm 2,308,044 ops/sec96```9798Test configuration: Framework 13 7840U, Fedora 39, Node.js 21.6.99
354 unmodified lines
modified:README.ru.md+14 added-14 removed
80 unmodified lines
81## Сравнение производительности8283```rust84$ node ./test/benchmark.js85crypto.randomUUID 28,398,328 ops/sec86uuid v4 10,254,199 ops/sec87@napi-rs/uuid 15,110,625 ops/sec88uid/secure 10,388,842 ops/sec89@lukeed/uuid 8,914,507 ops/sec90nanoid 7,484,029 ops/sec91customAlphabet 4,867,017 ops/sec92nanoid for browser 609,426 ops/sec93secure-random-string 539,080 ops/sec94uid-safe.sync 533,944 ops/sec95shortid 59,609 ops/sec85crypto.randomUUID 7,619,041 ops/sec86uuid v4 7,436,626 ops/sec87@napi-rs/uuid 4,730,614 ops/sec88uid/secure 4,729,185 ops/sec89@lukeed/uuid 4,015,673 ops/sec90nanoid 3,693,964 ops/sec91customAlphabet 2,799,255 ops/sec92nanoid for browser 380,915 ops/sec93secure-random-string 362,316 ops/sec94uid-safe.sync 354,234 ops/sec95shortid 38,808 ops/sec9697Non-secure:98uid 95,579,977 ops/sec99nanoid/non-secure 3,999,766 ops/sec100rndm 3,981,914 ops/sec98uid 11,872,105 ops/sec99nanoid/non-secure 2,226,483 ops/sec100rndm 2,308,044 ops/sec101```102103Среда сравнения: Framework 13 7840U, Fedora 39, Node.js 21.6.104
326 unmodified lines
modified:README.zh-CN.md+14 added-14 removed
71 unmodified lines
72## 基准值7374```rust75$ node ./test/benchmark.js76crypto.randomUUID 28,398,328 ops/sec77uuid v4 10,254,199 ops/sec78@napi-rs/uuid 15,110,625 ops/sec79uid/secure 10,388,842 ops/sec80@lukeed/uuid 8,914,507 ops/sec81nanoid 7,484,029 ops/sec82customAlphabet 4,867,017 ops/sec83nanoid for browser 609,426 ops/sec84secure-random-string 539,080 ops/sec85uid-safe.sync 533,944 ops/sec86shortid 59,609 ops/sec76crypto.randomUUID 7,619,041 ops/sec77uuid v4 7,436,626 ops/sec78@napi-rs/uuid 4,730,614 ops/sec79uid/secure 4,729,185 ops/sec80@lukeed/uuid 4,015,673 ops/sec81nanoid 3,693,964 ops/sec82customAlphabet 2,799,255 ops/sec83nanoid for browser 380,915 ops/sec84secure-random-string 362,316 ops/sec85uid-safe.sync 354,234 ops/sec86shortid 38,808 ops/sec8788Non-secure:89uid 95,579,977 ops/sec90nanoid/non-secure 3,999,766 ops/sec91rndm 3,981,914 ops/sec89uid 11,872,105 ops/sec90nanoid/non-secure 2,226,483 ops/sec91rndm 2,308,044 ops/sec92```9394测试配置: Framework 13 7840U, Fedora 39, Node.js 21.6.95
328 unmodified lines