string_slice_vs_substring (v4)

Revision 4 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
s.slice(7, 9);
s.slice(1, 5);
s.slice(10, 30);
ready
substring
s.substring(7, 9);
s.substring(1, 5);
s.substring(10, 30);
ready

Revisions

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