Script Preparation code:
Tests:
  • Date.now() + (Math.random() + '').substr(2);

  • Date.now().toString(36) + Math.random().toString(36).substr(2);

  • Date.now() + '' + Math.random();

  • Date.now().toString() + Math.random().toString();

  • ((Math.random() * 1_000_000) | 0).toString(16)

  • Math.random().toString(16).slice(2)

  • Math.random().toString(16).replace("0.", "e-");

  • ((Math.random() * 1_000_000 + 1_000_000) | 0).toString(16);

  • ((Math.random() * 100_000 + 100_000) | 0).toString(32);

  • ((Math.random() * 10_000_000 + 10_000_000) | 0).toString(32);

  • ((Math.random() * 10_000_000 + 10_000_000) | 0).toString(16);

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Date.now() + (Math.random() + '').substr(2);
    Date.now().toString(36) + Math.random().toString(36).substr(2);
    Date.now() + '' + Math.random();
    Date.now().toString() + Math.random().toString();
    ((Math.random() * 1_000_000) | 0).toString(16)
    Math.random().toString(16).slice(2)
    Math.random().toString(16).replace("0.", "e-");
    ((Math.random() * 1_000_000 + 1_000_000) | 0).toString(16);
    ((Math.random() * 100_000 + 100_000) | 0).toString(32);
    ((Math.random() * 10_000_000 + 10_000_000) | 0).toString(32);
    ((Math.random() * 10_000_000 + 10_000_000) | 0).toString(16);

    Fastest: N/A

    Slowest: N/A

Latest run results:

No previous run results

This benchmark does not have any results yet. Be the first one to run it!



;