test

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
log
console.log('Hello!');
ready
empty
function empty() {}

empty();
ready
random
function dec2hex (dec) {
  return dec.toString(16).padStart(2, "0")
}

// generateId :: Integer -> String
function generateId (len) {
  var arr = new Uint8Array((len || 40) / 2)
  window.crypto.getRandomValues(arr)
  return Array.from(arr, dec2hex).join('')
}

const s = generateId(65536);
console.log(s);
ready

Revisions

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