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 5f5c5b0 · Browse files · 1 file+15 added−14 removed
This commit

State

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

Diff stats

1 file+15 added−14 removed

  • other:+15 added−14 removed

1 file+15 added−14 removed

modified:README.md+15 added-14 removed
74 unmodified lines
75## Benchmark7677```rust78$ node ./test/benchmark.js79crypto.randomUUID 21,119,429 ops/sec80uuid v4 20,368,447 ops/sec81@napi-rs/uuid 11,493,890 ops/sec82uid/secure 8,409,962 ops/sec83@lukeed/uuid 6,871,405 ops/sec84nanoid 5,652,148 ops/sec85customAlphabet 3,565,656 ops/sec86secure-random-string 394,201 ops/sec87uid-safe.sync 393,176 ops/sec88shortid 49,916 ops/sec79crypto.randomUUID 28,398,328 ops/sec80uuid v4 10,254,199 ops/sec81@napi-rs/uuid 15,110,625 ops/sec82uid/secure 10,388,842 ops/sec83@lukeed/uuid 8,914,507 ops/sec84nanoid 7,484,029 ops/sec85customAlphabet 4,867,017 ops/sec86nanoid for browser 609,426 ops/sec87secure-random-string 539,080 ops/sec88uid-safe.sync 533,944 ops/sec89shortid 59,609 ops/sec9091Non-secure:91uid 58,860,241 ops/sec92nanoid/non-secure 2,744,615 ops/sec93rndm 2,718,063 ops/sec92uid 95,579,977 ops/sec93nanoid/non-secure 3,999,766 ops/sec94rndm 3,981,914 ops/sec95```9696Test configuration: ThinkPad X1 Carbon Gen 9, Fedora 36, Node.js 18.9.97Test configuration: Framework 13 7840U, Fedora 39, Node.js 21.6.9899100## Security101
344 unmodified lines