From 69995abcf5458e2277de2381755fbe7ec322173c Mon Sep 17 00:00:00 2001 From: Andrey Sitnik Date: Tue, 25 Jun 2024 13:32:43 +0000 Subject: [PATCH] Update benchmark --- README.id-ID.md | 28 ++++++++++++++-------------- README.md | 28 ++++++++++++++-------------- README.ru.md | 28 ++++++++++++++-------------- README.zh-CN.md | 28 ++++++++++++++-------------- 4 files changed, 56 insertions(+), 56 deletions(-) diff --git a/README.id-ID.md b/README.id-ID.md index be804f25..c1924f7c 100644 --- a/README.id-ID.md +++ b/README.id-ID.md @@ -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. diff --git a/README.md b/README.md index 6d64c83d..7b4c1cae 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/README.ru.md b/README.ru.md index 42d1bb39..af394b5d 100644 --- a/README.ru.md +++ b/README.ru.md @@ -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. diff --git a/README.zh-CN.md b/README.zh-CN.md index e3961971..acb13c85 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -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.