dfasdfasdfasdf

Benchmark created by rlemon on


Preparation HTML

<script>
  var str = "Hello World";
  var h;
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
substr
h = str.substr(0, str.length-1);
ready
substring
h = str.substring(0, str.length-1);
ready
slice
h = str.slice(0, -1);
ready

Revisions

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

  • Revision 1: published by rlemon on