RegExp vs match (v3)

Revision 3 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
RegExp test
const parts = new RegExp(/([a-zA-Z]+)(\d*)(.*)/).test('chab19eu')
ready

Revisions

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