Skip to content
Myr

Update benchmark (#584)

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

authored by Andrey Sitnik · committed by GitHub · parent d3030b7 · Browse files · 10 files+91 added−113 removed
This commit

State

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

Diff stats

10 files+91 added−113 removed

  • tests:+0 added−4 removed
  • other:+91 added−109 removed

10 files+91 added−113 removed

modified:test/benchmark.js-4 removed
modified:package.json-1 removed
63 unmodified lines
64 "oxlint": "^1.59.0",65 "oxlint-tsgolint": "^0.20.0",66 "rndm": "^1.2.0",67 "secure-random-string": "^1.1.4",68 "shortid": "^2.2.17",68 "simple-git-hooks": "^2.13.1",69 "size-limit": "^12.0.1",70 "terser": "^5.46.1",71 "tinybench": "^6.0.0",
55 unmodified lines
modified:pnpm-lock.yaml-10 removed
48 unmodified lines
49 version: 1.2.050 secure-random-string:51 specifier: ^1.1.452 version: 1.1.453 shortid:54 specifier: ^2.2.1755 version: 2.2.1753 simple-git-hooks:54 specifier: ^2.13.155 version: 2.13.156 size-limit:
938 unmodified lines
995 resolution: {integrity: sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==}996 engines: {node: '>=10'}997 hasBin: true9981002 shortid@2.2.17:1003 resolution: {integrity: sha512-GpbM3gLF1UUXZvQw6MCyulHkWbRseNO4cyBEZresZRorwl1+SLu1ZdqgVtuwqz8mB6RpwPkm541mYSqrKyJSaA==}1004999 simple-git-hooks@2.13.1:1000 resolution: {integrity: sha512-WszCLXwT4h2k1ufIXAgsbiTOazqqevFCIncOuUBZJ91DdvWcC5+OFkluWRQPrcuSYd8fjq+o2y1QfWqYMoAToQ==}1001 hasBin: true1002
933 unmodified lines
1936 semver@6.3.1: {}19371938 semver@7.7.4: {}19391946 shortid@2.2.17:1947 dependencies:1948 nanoid: 3.3.1119491940 simple-git-hooks@2.13.1: {}19411942 size-limit@12.0.1(jiti@2.5.1):1943 dependencies:
130 unmodified lines
modified:README.ar.md+13 added-14 removed
84 unmodified lines
85</div>8687```rust88$ node ./test/benchmark.js89crypto.randomUUID 7,619,041 ops/sec90uuid v4 7,436,626 ops/sec91@napi-rs/uuid 4,730,614 ops/sec92uid/secure 4,729,185 ops/sec93@lukeed/uuid 4,015,673 ops/sec94nanoid 3,693,964 ops/sec95customAlphabet 2,799,255 ops/sec96nanoid for browser 380,915 ops/sec97secure-random-string 362,316 ops/sec98uid-safe.sync 354,234 ops/sec99shortid 38,808 ops/sec89crypto.randomUUID 21,741,317 ops/sec90uuid v4 21,204,378 ops/sec91@napi-rs/uuid 10,236,615 ops/sec92uid/secure 10,567,676 ops/sec93@lukeed/uuid 8,647,481 ops/sec94nanoid 7,800,308 ops/sec95customAlphabet 9,697,350 ops/sec96nanoid for browser 576,759 ops/sec97secure-random-string 529,253 ops/sec98uid-safe.sync 526,459 ops/sec99100Non-secure:102uid 11,872,105 ops/sec103nanoid/non-secure 2,226,483 ops/sec104rndm 2,308,044 ops/sec101uid 31,379,525 ops/sec102nanoid/non-secure 3,678,505 ops/sec103rndm 3,767,185 ops/sec104```105106<div dir="rtl">107
479 unmodified lines
modified:README.id-ID.md+13 added-14 removed
62 unmodified lines
63## Benchmark6465```rust66$ node ./test/benchmark.js67crypto.randomUUID 7,619,041 ops/sec68uuid v4 7,436,626 ops/sec69@napi-rs/uuid 4,730,614 ops/sec70uid/secure 4,729,185 ops/sec71@lukeed/uuid 4,015,673 ops/sec72nanoid 3,693,964 ops/sec73customAlphabet 2,799,255 ops/sec74nanoid for browser 380,915 ops/sec75secure-random-string 362,316 ops/sec76uid-safe.sync 354,234 ops/sec77shortid 38,808 ops/sec67crypto.randomUUID 21,741,317 ops/sec68uuid v4 21,204,378 ops/sec69@napi-rs/uuid 10,236,615 ops/sec70uid/secure 10,567,676 ops/sec71@lukeed/uuid 8,647,481 ops/sec72nanoid 7,800,308 ops/sec73customAlphabet 9,697,350 ops/sec74nanoid for browser 576,759 ops/sec75secure-random-string 529,253 ops/sec76uid-safe.sync 526,459 ops/sec7778Non-secure:80uid 11,872,105 ops/sec81nanoid/non-secure 2,226,483 ops/sec82rndm 2,308,044 ops/sec79uid 31,379,525 ops/sec80nanoid/non-secure 3,678,505 ops/sec81rndm 3,767,185 ops/sec82```8384Konfigurasi pengujian: Framework 13 7840U, Fedora 39, Node.js 21.6.85
258 unmodified lines
modified:README.ja.md+13 added-14 removed
75 unmodified lines
76## ベンチマーク7778```rust79$ node ./test/benchmark.js80crypto.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/sec80crypto.randomUUID 21,741,317 ops/sec81uuid v4 21,204,378 ops/sec82@napi-rs/uuid 10,236,615 ops/sec83uid/secure 10,567,676 ops/sec84@lukeed/uuid 8,647,481 ops/sec85nanoid 7,800,308 ops/sec86customAlphabet 9,697,350 ops/sec87nanoid for browser 576,759 ops/sec88secure-random-string 529,253 ops/sec89uid-safe.sync 526,459 ops/sec9091Non-secure:93uid 11,872,105 ops/sec94nanoid/non-secure 2,226,483 ops/sec95rndm 2,308,044 ops/sec92uid 31,379,525 ops/sec93nanoid/non-secure 3,678,505 ops/sec94rndm 3,767,185 ops/sec95```9697テスト構成:Framework 13 7840U, Fedora 39, Node.js 21.6.98
365 unmodified lines
modified:README.ko.md+13 added-14 removed
74 unmodified lines
75## 벤치마크7677```rust78$ node ./test/benchmark.js79crypto.randomUUID 7,619,041 ops/sec80uuid v4 7,436,626 ops/sec81@napi-rs/uuid 4,730,614 ops/sec82uid/secure 4,729,185 ops/sec83@lukeed/uuid 4,015,673 ops/sec84nanoid 3,693,964 ops/sec85customAlphabet 2,799,255 ops/sec86nanoid for browser 380,915 ops/sec87secure-random-string 362,316 ops/sec88uid-safe.sync 354,234 ops/sec89shortid 38,808 ops/sec79crypto.randomUUID 21,741,317 ops/sec80uuid v4 21,204,378 ops/sec81@napi-rs/uuid 10,236,615 ops/sec82uid/secure 10,567,676 ops/sec83@lukeed/uuid 8,647,481 ops/sec84nanoid 7,800,308 ops/sec85customAlphabet 9,697,350 ops/sec86nanoid for browser 576,759 ops/sec87secure-random-string 529,253 ops/sec88uid-safe.sync 526,459 ops/sec8990Non-secure:92uid 11,872,105 ops/sec93nanoid/non-secure 2,226,483 ops/sec94rndm 2,308,044 ops/sec91uid 31,379,525 ops/sec92nanoid/non-secure 3,678,505 ops/sec93rndm 3,767,185 ops/sec94```9596테스트 환경: 프레임워크 13 7840U, 페도라 39, Node.js 21.6.97
370 unmodified lines
modified:README.md+13 added-14 removed
76 unmodified lines
77## Benchmark7879```rust80$ node ./test/benchmark.js81crypto.randomUUID 7,619,041 ops/sec82uuid v4 7,436,626 ops/sec83@napi-rs/uuid 4,730,614 ops/sec84uid/secure 4,729,185 ops/sec85@lukeed/uuid 4,015,673 ops/sec86nanoid 3,693,964 ops/sec87customAlphabet 2,799,255 ops/sec88nanoid for browser 380,915 ops/sec89secure-random-string 362,316 ops/sec90uid-safe.sync 354,234 ops/sec91shortid 38,808 ops/sec81crypto.randomUUID 21,741,317 ops/sec82uuid v4 21,204,378 ops/sec83@napi-rs/uuid 10,236,615 ops/sec84uid/secure 10,567,676 ops/sec85@lukeed/uuid 8,647,481 ops/sec86nanoid 7,800,308 ops/sec87customAlphabet 9,697,350 ops/sec88nanoid for browser 576,759 ops/sec89secure-random-string 529,253 ops/sec90uid-safe.sync 526,459 ops/sec9192Non-secure:94uid 11,872,105 ops/sec95nanoid/non-secure 2,226,483 ops/sec96rndm 2,308,044 ops/sec93uid 31,379,525 ops/sec94nanoid/non-secure 3,678,505 ops/sec95rndm 3,767,185 ops/sec96```9798Test configuration: Framework 13 7840U, Fedora 39, Node.js 21.6.99
384 unmodified lines
modified:README.ru.md+13 added-14 removed
81 unmodified lines
82## Сравнение производительности8384```rust85$ node ./test/benchmark.js86crypto.randomUUID 7,619,041 ops/sec87uuid v4 7,436,626 ops/sec88@napi-rs/uuid 4,730,614 ops/sec89uid/secure 4,729,185 ops/sec90@lukeed/uuid 4,015,673 ops/sec91nanoid 3,693,964 ops/sec92customAlphabet 2,799,255 ops/sec93nanoid for browser 380,915 ops/sec94secure-random-string 362,316 ops/sec95uid-safe.sync 354,234 ops/sec96shortid 38,808 ops/sec86crypto.randomUUID 21,741,317 ops/sec87uuid v4 21,204,378 ops/sec88@napi-rs/uuid 10,236,615 ops/sec89uid/secure 10,567,676 ops/sec90@lukeed/uuid 8,647,481 ops/sec91nanoid 7,800,308 ops/sec92customAlphabet 9,697,350 ops/sec93nanoid for browser 576,759 ops/sec94secure-random-string 529,253 ops/sec95uid-safe.sync 526,459 ops/sec9697Non-secure:99uid 11,872,105 ops/sec100nanoid/non-secure 2,226,483 ops/sec101rndm 2,308,044 ops/sec98uid 31,379,525 ops/sec99nanoid/non-secure 3,678,505 ops/sec100rndm 3,767,185 ops/sec101```102103Среда сравнения: Framework 13 7840U, Fedora 39, Node.js 21.6.104
359 unmodified lines
modified:README.zh-CN.md+13 added-14 removed
69 unmodified lines
70## 基准值7172```rust73$ node ./test/benchmark.js74crypto.randomUUID 7,619,041 ops/sec75uuid v4 7,436,626 ops/sec76@napi-rs/uuid 4,730,614 ops/sec77uid/secure 4,729,185 ops/sec78@lukeed/uuid 4,015,673 ops/sec79nanoid 3,693,964 ops/sec80customAlphabet 2,799,255 ops/sec81nanoid for browser 380,915 ops/sec82secure-random-string 362,316 ops/sec83uid-safe.sync 354,234 ops/sec84shortid 38,808 ops/sec74crypto.randomUUID 21,741,317 ops/sec75uuid v4 21,204,378 ops/sec76@napi-rs/uuid 10,236,615 ops/sec77uid/secure 10,567,676 ops/sec78@lukeed/uuid 8,647,481 ops/sec79nanoid 7,800,308 ops/sec80customAlphabet 9,697,350 ops/sec81nanoid for browser 576,759 ops/sec82secure-random-string 529,253 ops/sec83uid-safe.sync 526,459 ops/sec8485Non-secure:87uid 11,872,105 ops/sec88nanoid/non-secure 2,226,483 ops/sec89rndm 2,308,044 ops/sec86uid 31,379,525 ops/sec87nanoid/non-secure 3,678,505 ops/sec88rndm 3,767,185 ops/sec89```9091测试配置: Framework 13 7840U, Fedora 39, Node.js 21.6.92
321 unmodified lines