String.uniqueID vs Number.random

Benchmark created by Yannick Croissant on


Description

Compare the Mootools methods String.uniqueID() and Number.random()

Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/mootools/1.3.0/mootools-yui-compressed.js"></script>

Test runner

Ready to run.

Testing in
TestOps/sec
String.uniqueID
String.uniqueID();
ready
Number.random
Number.random(10e6, 10e7);
ready

Revisions

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

  • Revision 1: published by Yannick Croissant on