mojtest (v37)

Revision 37 of this benchmark created on


Preparation HTML

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

Test runner

Ready to run.

Testing in
TestOps/sec
String literal
str = "" + a - b + "px";
ready
String constructor
str = String(a - b) + "px";
ready
toString
str = (a - b).toString() + "px";
ready
String Literal simple
str = (a - b) + "px";
ready

Revisions

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