Array Operation

Benchmark created by Peter on


Preparation HTML

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

Setup

var array = new Array("Apple", "Cherry", "Tree", "Car");

  Benchmark.prototype.setup = function() {
    var random = Math.random(1, 1024 * 1024);
  };

Test runner

Ready to run.

Testing in
TestOps/sec
Push
array.push(random);
ready
Unshift
array.unshift(random);
ready

Revisions

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