Skip to content

Commit

Permalink
Update benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Jun 25, 2024
1 parent e3dfef9 commit 69995ab
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 56 deletions.
28 changes: 14 additions & 14 deletions README.id-ID.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,22 +67,22 @@ Ada dua buah perbedaan antara Nano ID dan UUID v4:

```rust
$ node ./test/benchmark.js
crypto.randomUUID 28,398,328 ops/sec
uuid v4 10,254,199 ops/sec
@napi-rs/uuid 15,110,625 ops/sec
uid/secure 10,388,842 ops/sec
@lukeed/uuid 8,914,507 ops/sec
nanoid 7,484,029 ops/sec
customAlphabet 4,867,017 ops/sec
nanoid for browser 609,426 ops/sec
secure-random-string 539,080 ops/sec
uid-safe.sync 533,944 ops/sec
shortid 59,609 ops/sec
crypto.randomUUID 7,619,041 ops/sec
uuid v4 7,436,626 ops/sec
@napi-rs/uuid 4,730,614 ops/sec
uid/secure 4,729,185 ops/sec
@lukeed/uuid 4,015,673 ops/sec
nanoid 3,693,964 ops/sec
customAlphabet 2,799,255 ops/sec
nanoid for browser 380,915 ops/sec
secure-random-string 362,316 ops/sec
uid-safe.sync 354,234 ops/sec
shortid 38,808 ops/sec

Non-secure:
uid 95,579,977 ops/sec
nanoid/non-secure 3,999,766 ops/sec
rndm 3,981,914 ops/sec
uid 11,872,105 ops/sec
nanoid/non-secure 2,226,483 ops/sec
rndm 2,308,044 ops/sec
```

Konfigurasi pengujian: Framework 13 7840U, Fedora 39, Node.js 21.6.
Expand Down
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,22 +77,22 @@ There are two main differences between Nano ID and UUID v4:

```rust
$ node ./test/benchmark.js
crypto.randomUUID 28,398,328 ops/sec
uuid v4 10,254,199 ops/sec
@napi-rs/uuid 15,110,625 ops/sec
uid/secure 10,388,842 ops/sec
@lukeed/uuid 8,914,507 ops/sec
nanoid 7,484,029 ops/sec
customAlphabet 4,867,017 ops/sec
nanoid for browser 609,426 ops/sec
secure-random-string 539,080 ops/sec
uid-safe.sync 533,944 ops/sec
shortid 59,609 ops/sec
crypto.randomUUID 7,619,041 ops/sec
uuid v4 7,436,626 ops/sec
@napi-rs/uuid 4,730,614 ops/sec
uid/secure 4,729,185 ops/sec
@lukeed/uuid 4,015,673 ops/sec
nanoid 3,693,964 ops/sec
customAlphabet 2,799,255 ops/sec
nanoid for browser 380,915 ops/sec
secure-random-string 362,316 ops/sec
uid-safe.sync 354,234 ops/sec
shortid 38,808 ops/sec

Non-secure:
uid 95,579,977 ops/sec
nanoid/non-secure 3,999,766 ops/sec
rndm 3,981,914 ops/sec
uid 11,872,105 ops/sec
nanoid/non-secure 2,226,483 ops/sec
rndm 2,308,044 ops/sec
```

Test configuration: Framework 13 7840U, Fedora 39, Node.js 21.6.
Expand Down
28 changes: 14 additions & 14 deletions README.ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,22 +82,22 @@ Nano ID похож на UUID v4 (случайный).

```rust
$ node ./test/benchmark.js
crypto.randomUUID 28,398,328 ops/sec
uuid v4 10,254,199 ops/sec
@napi-rs/uuid 15,110,625 ops/sec
uid/secure 10,388,842 ops/sec
@lukeed/uuid 8,914,507 ops/sec
nanoid 7,484,029 ops/sec
customAlphabet 4,867,017 ops/sec
nanoid for browser 609,426 ops/sec
secure-random-string 539,080 ops/sec
uid-safe.sync 533,944 ops/sec
shortid 59,609 ops/sec
crypto.randomUUID 7,619,041 ops/sec
uuid v4 7,436,626 ops/sec
@napi-rs/uuid 4,730,614 ops/sec
uid/secure 4,729,185 ops/sec
@lukeed/uuid 4,015,673 ops/sec
nanoid 3,693,964 ops/sec
customAlphabet 2,799,255 ops/sec
nanoid for browser 380,915 ops/sec
secure-random-string 362,316 ops/sec
uid-safe.sync 354,234 ops/sec
shortid 38,808 ops/sec

Non-secure:
uid 95,579,977 ops/sec
nanoid/non-secure 3,999,766 ops/sec
rndm 3,981,914 ops/sec
uid 11,872,105 ops/sec
nanoid/non-secure 2,226,483 ops/sec
rndm 2,308,044 ops/sec
```

Среда сравнения: Framework 13 7840U, Fedora 39, Node.js 21.6.
Expand Down
28 changes: 14 additions & 14 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,22 +73,22 @@ Nano ID 和 UUID v4之间有两个主要区别:

```rust
$ node ./test/benchmark.js
crypto.randomUUID 28,398,328 ops/sec
uuid v4 10,254,199 ops/sec
@napi-rs/uuid 15,110,625 ops/sec
uid/secure 10,388,842 ops/sec
@lukeed/uuid 8,914,507 ops/sec
nanoid 7,484,029 ops/sec
customAlphabet 4,867,017 ops/sec
nanoid for browser 609,426 ops/sec
secure-random-string 539,080 ops/sec
uid-safe.sync 533,944 ops/sec
shortid 59,609 ops/sec
crypto.randomUUID 7,619,041 ops/sec
uuid v4 7,436,626 ops/sec
@napi-rs/uuid 4,730,614 ops/sec
uid/secure 4,729,185 ops/sec
@lukeed/uuid 4,015,673 ops/sec
nanoid 3,693,964 ops/sec
customAlphabet 2,799,255 ops/sec
nanoid for browser 380,915 ops/sec
secure-random-string 362,316 ops/sec
uid-safe.sync 354,234 ops/sec
shortid 38,808 ops/sec

Non-secure:
uid 95,579,977 ops/sec
nanoid/non-secure 3,999,766 ops/sec
rndm 3,981,914 ops/sec
uid 11,872,105 ops/sec
nanoid/non-secure 2,226,483 ops/sec
rndm 2,308,044 ops/sec
```

测试配置: Framework 13 7840U, Fedora 39, Node.js 21.6.
Expand Down

0 comments on commit 69995ab

Please sign in to comment.