tostring vs coerce

Benchmark created on


Preparation HTML

<script>
  var d = 1;
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
toString
var s = d.toString();
ready
coerce
var ss = d + "";
ready

Revisions

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