string slice vs regex (v2)

Revision 2 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
slice
("facets").slice(-1)
ready
regex
("facets").match(/(.*)s$/i)[1]
ready
substr
("facets").substr(-1)
ready

Revisions

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