slice vs replace (v2)

Revision 2 of this benchmark created on


Setup

let song = '/jingle/bells/batman/smells'

Test runner

Ready to run.

Testing in
TestOps/sec
Using split
song.slice(7)
ready
Using replace
song.replace('/jingle', '')
ready

Revisions

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