mojtest (v38)

Revision 38 of this benchmark created on


Preparation HTML

<script>
  var a = 1855,
      b = 3000,
      str;
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Test 1
str = "" + (a - b) + "px";
ready
Test 2
str = String(a - b) + "px";
ready
Test 3
str = (a - b).toString() + "px";
ready
Test 4
str = a - b + "px";
ready
Test 5
str = (a - b) + "px"
ready

Revisions

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