Test slice vs substring

Benchmark created on


Setup

const str = 'this is my test';

Test runner

Ready to run.

Testing in
TestOps/sec
slice
str.slice(5)
ready
substring
str.substring(5)
ready

Revisions

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