this vs that (v2)

Revision 2 of this benchmark created by John-David Dalton on


Preparation HTML

<script>
  x = 230
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
x / 2
x / 2
ready
x * 0.5
x * 0.5
ready
Math.PI * 0.5
Math.PI * 0.5
ready
1.570796
1.570796
ready
x /= 2
x /= 2
ready
x *= 0.5
x *= 0.5
ready
x * .333333
x * .333333
ready
x / 3
x / 3
ready
x * 0.001
x * 0.001
ready
x * 1e-3
x * 1e-3
ready

Revisions

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

  • Revision 1: published by John-David Dalton on
  • Revision 2: published by John-David Dalton on