Math.random vs crypto.randomUUID

Benchmark created on


Description

compare performance

Test runner

Ready to run.

Testing in
TestOps/sec
Math.random
let x = Math.random().toString(36).substring(2, 15);
ready
crypto.randomUUID
let x = crypto.randomUUID();
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.