@@ -78,21 +78,22 @@ There are two main differences between Nano ID and UUID v4:
7878
7979``` rust
8080$ node . / test / benchmark . js
81- crypto . randomUUID 21 ,741 ,317 ops / sec
82- uuid v4 21 ,204 ,378 ops / sec
83- @ napi - rs / uuid 10 ,236 ,615 ops / sec
84- uid / secure 10 ,567 ,676 ops / sec
85- @ lukeed / uuid 8 ,647 ,481 ops / sec
86- nanoid 7 ,800 ,308 ops / sec
87- customAlphabet 9 ,697 ,350 ops / sec
88- nanoid for browser 576 ,759 ops / sec
89- secure - random - string 529 ,253 ops / sec
90- uid - safe . sync 526 ,459 ops / sec
81+ crypto . randomUUID 14 ,859 ,099 ops / sec
82+ uuid v4 9 ,456 ,355 ops / sec
83+ @ napi - rs / uuid 7 ,000 ,646 ops / sec
84+ uid / secure 7 ,318 ,120 ops / sec
85+ @ lukeed / uuid 6 ,241 ,275 ops / sec
86+ nope - id 5 ,567 ,338 ops / sec
87+ nanoid 5 ,412 ,358 ops / sec
88+ customAlphabet 6 ,565 ,742 ops / sec
89+ nanoid for browser 485 ,023 ops / sec
90+ secure - random - string 414 ,150 ops / sec
91+ uid - safe . sync 413 ,603 ops / sec
9192
9293Non - secure :
93- uid 31 , 379 , 525 ops / sec
94- nanoid / non - secure 3 , 678 , 505 ops / sec
95- rndm 3 , 767 , 185 ops / sec
94+ uid 29 , 182 , 907 ops / sec
95+ nanoid / non - secure 2 , 702 , 277 ops / sec
96+ rndm 2 , 734 , 241 ops / sec
9697```
9798
9899Test configuration: Framework 13 7840U, Fedora 39, Node.js 21.6.
0 commit comments