@@ -78,22 +78,23 @@ There are two main differences between Nano ID and UUID v4:
7878
7979``` rust
8080$ node . / test / benchmark . js
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
81+ nope - id 27 , 398 , 074 ops / sec
82+ crypto . randomUUID 14 , 055 , 107 ops / sec
83+ uuid v4 9 , 256 , 301 ops / sec
84+ @ napi - rs / uuid 7 , 100 , 180 ops / sec
85+ uid / secure 7 , 312 , 765 ops / sec
86+ @ lukeed / uuid 5 , 543 , 254 ops / sec
87+ nanoid 4 , 954 , 561 ops / sec
88+ customAlphabet 6 ,708 , 339 ops / sec
89+ nanoid for browser 497 , 980 ops / sec
90+ secure - random - string 412 , 049 ops / sec
91+ uid - safe . sync 420 , 669 ops / sec
9292
9393Non - secure :
94- uid 29 ,182 ,907 ops / sec
95- nanoid / non - secure 2 ,702 ,277 ops / sec
96- rndm 2 ,734 ,241 ops / sec
94+ uid 27 ,106 ,859 ops / sec
95+ nanoid / non - secure 2 ,672 ,540 ops / sec
96+ rndm 2 ,666 ,518 ops / sec
97+
9798```
9899
99100Test configuration: Framework 13 7840U, Fedora 39, Node.js 21.6.
0 commit comments