@@ -77,22 +77,22 @@ There are two main differences between Nano ID and UUID v4:
7777
7878``` rust
7979$ node . / test / benchmark . js
80- crypto . randomUUID 28 , 398 , 328 ops / sec
81- uuid v4 10 , 254 , 199 ops / sec
82- @ napi - rs / uuid 15 , 110 , 625 ops / sec
83- uid / secure 10 , 388 , 842 ops / sec
84- @ lukeed / uuid 8 , 914 , 507 ops / sec
85- nanoid 7 , 484 , 029 ops / sec
86- customAlphabet 4 , 867 , 017 ops / sec
87- nanoid for browser 609 , 426 ops / sec
88- secure - random - string 539 , 080 ops / sec
89- uid - safe . sync 533 , 944 ops / sec
90- shortid 59 , 609 ops / sec
80+ crypto . randomUUID 7 , 619 , 041 ops / sec
81+ uuid v4 7 , 436 , 626 ops / sec
82+ @ napi - rs / uuid 4 , 730 , 614 ops / sec
83+ uid / secure 4 , 729 , 185 ops / sec
84+ @ lukeed / uuid 4 , 015 , 673 ops / sec
85+ nanoid 3 , 693 , 964 ops / sec
86+ customAlphabet 2 , 799 , 255 ops / sec
87+ nanoid for browser 380 , 915 ops / sec
88+ secure - random - string 362 , 316 ops / sec
89+ uid - safe . sync 354 , 234 ops / sec
90+ shortid 38 , 808 ops / sec
9191
9292Non - secure :
93- uid 95 , 579 , 977 ops / sec
94- nanoid / non - secure 3 , 999 , 766 ops / sec
95- rndm 3 , 981 , 914 ops / sec
93+ uid 11 , 872 , 105 ops / sec
94+ nanoid / non - secure 2 , 226 , 483 ops / sec
95+ rndm 2 , 308 , 044 ops / sec
9696```
9797
9898Test configuration: Framework 13 7840U, Fedora 39, Node.js 21.6.
0 commit comments