RegExp vs match (v2)

Revision 2 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
RegExp
const parts = RegExp(/([a-zA-Z]+)(\d*)(.*)/).exec('chab19eu')
ready
Match
const parts = 'chab19eu'.match(/([a-zA-Z]+)(\d*)(.*)/);
ready
new RegExp
const parts = new RegExp(/([a-zA-Z]+)(\d*)(.*)/).exec('chab19eu')
ready

Revisions

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