You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
crypto.randomUUID() is faster in the order Bun > Node.js > Deno.
It may be a small difference, but these may be used frequently in libraries like Request ID, and I hope it's faster.
crypto.randomUUID()
is faster in the order Bun > Node.js > Deno.It may be a small difference, but these may be used frequently in libraries like Request ID, and I hope it's faster.
Benchmark script:
Deno v1.44.4
Node.js v22.4.0
benchmark time (avg) (min … max) p75 p99 p999 -------------------------------------------------- ----------------------------- randomUUID 198 ns/iter (167 ns … 478 ns) 206 ns 308 ns 473 ns
Bun v1.1.18
benchmark time (avg) (min … max) p75 p99 p999 -------------------------------------------------- ----------------------------- randomUUID 115 ns/iter (82.81 ns … 509 ns) 116 ns 167 ns 239 ns
The text was updated successfully, but these errors were encountered: