Skip to content
Myr

Add @lukeed/uuid to benchmark and fix uid length

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 5870ed0 · Browse files · 6 files+20 added−5 removed
This commit

State

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

Diff stats

6 files+20 added−5 removed

  • tests:+6 added−2 removed
  • other:+14 added−3 removed

6 files+20 added−5 removed

modified:test/benchmark.js+6 added-2 removed
modified:package.json+1 added
31 unmodified lines
32 "devDependencies": {33 "@babel/core": "^7.15.5",34 "@logux/eslint-config": "^45.4.8",35 "@logux/sharec-config": "^0.12.2",36 "@lukeed/uuid": "^2.0.0",37 "@parcel/optimizer-cssnano": "^2.0.0-rc.0",38 "@parcel/optimizer-htmlnano": "^2.0.0-rc.0",39 "@parcel/packager-css": "^2.0.0-rc.0",40 "@parcel/packager-html": "^2.0.0-rc.0",
200 unmodified lines
modified:README.md+2 added-1 removed
81 unmodified lines
8283```rust84$ node ./test/benchmark.js85crypto.randomUUID 28,387,114 ops/sec86uid/secure 11,994,801 ops/sec86uid/secure 8,633,795 ops/sec87@lukeed/uuid 6,888,704 ops/sec88nanoid 6,166,399 ops/sec89customAlphabet 3,290,342 ops/sec90uuid v4 1,662,373 ops/sec91secure-random-string 415,340 ops/sec
434 unmodified lines
modified:README.ru.md+2 added-1 removed
87 unmodified lines
8889```rust90$ node ./test/benchmark.js91crypto.randomUUID 28,387,114 ops/sec92uid/secure 11,994,801 ops/sec92uid/secure 8,633,795 ops/sec93@lukeed/uuid 6,888,704 ops/sec94nanoid 6,166,399 ops/sec95customAlphabet 3,290,342 ops/sec96uuid v4 1,662,373 ops/sec97secure-random-string 415,340 ops/sec
420 unmodified lines
modified:README.zh-CN.md+2 added-1 removed
81 unmodified lines
8283```rust84$ node ./test/benchmark.js85crypto.randomUUID 28,387,114 ops/sec86uid/secure 11,994,801 ops/sec86uid/secure 8,633,795 ops/sec87@lukeed/uuid 6,888,704 ops/sec88nanoid 6,166,399 ops/sec89customAlphabet 3,290,342 ops/sec90uuid v4 1,662,373 ops/sec91secure-random-string 415,340 ops/sec
423 unmodified lines
modified:yarn.lock+7 added
568 unmodified lines
569 version "1.0.0"570 resolved "https://registry.yarnpkg.com/@lukeed/csprng/-/csprng-1.0.0.tgz#733a122382749d27e2e46ec38f8c71c9d53a9636"571 integrity sha512-ruuGHsnabmObBdeMg3vKdGRmh06Oog3eFpf/Tk6X0kDSJDpJTDCj2dqdp1+0VjzIUgHlFF9GBm7uFqfYhhdX9g==572573"@lukeed/uuid@^2.0.0":574 version "2.0.0"575 resolved "https://registry.yarnpkg.com/@lukeed/uuid/-/uuid-2.0.0.tgz#1c0f33c071cb6902bc3b9e475782ada7314ef9bd"576 integrity sha512-dUz8OmYvlY5A9wXaroHIMSPASpSYRLCqbPvxGSyHguhtTQIy24lC+EGxQlwv71AhRCO55WOtgwhzQLpw27JaJQ==577 dependencies:578 "@lukeed/csprng" "^1.0.0"579580"@nodelib/fs.scandir@2.1.5":581 version "2.1.5"582 resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5"583 integrity sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==
8797 unmodified lines