shfiwohwaofhawo

Benchmark created by shiftfor on


Setup

var ar = []
    for (var i=0;i<100;i++) {
    ar[i] = Math.random().toString(36).substring(2)
    }

Test runner

Ready to run.

Testing in
TestOps/sec
shift
;(function next() {
var result = ar.shift()
if (ar.length) next()
})()
ready
for
for (var i=0;i<ar.length;i++) {
var result = ar[i]
}
ready

Revisions

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

  • Revision 1: published by shiftfor on