charAt / substr

Benchmark created on


Preparation HTML

<script>
  var t = "test";
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
charAt
var x = t.charAt(0);
ready
substr
var x = t.substr(0,1);
ready

Revisions

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