=1 vs < (v3)

Revision 3 of this benchmark created on


Preparation HTML

<script>
  var array = [1,2,3,4,5,6,7,78,8,6,54,3,23,2,2,2,31,23,12,4,1234,52,34,523,45,23,45,234,52,345,2,34,5,5,4,3,32334,3];
  var len = array.length;
  var res;
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
less
for(var i = 0; i < len; i++) {
    res = (i > array [i]);
}
ready
not
for(var i = 0; i < len; i++) {
    res = (i != array [i]);
}
ready

Revisions

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