string_slice_vs_substring

Benchmark created on


Setup

var s = " I am so glad to hear about you.  \t\r";

Test runner

Ready to run.

Testing in
TestOps/sec
slice
s.slice(7, 9);
ready
substring
s.substring(7, 9);
ready

Revisions

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