gte (>=) vs. gt (>)

Benchmark created by Premasagar Rose on


Preparation HTML

<script>
  var i, cycles = 10000,
      result;
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
gte (>=)
for (i = 0; i < cycles; i++) {
 result = result && 5 >= 4;
}
window.result1 = result;
ready
gt (>)
for (i = 0; i < cycles; i++) {
 result = result && 5 > 4;
}
window.result2 = result;
ready

Revisions

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

  • Revision 1: published by Premasagar Rose on
  • Revision 2: published by Martijn on