string_slice_vs_substring (v7)

Revision 7 of this 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
s1 = s.slice(7, 9);
s2 = s.slice(1, 5);
ready
substring
s1 = s.substring(7, 9);
s2 = s.substring(1, 5);
ready

Revisions

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