regex case insensitie test (v2)

Revision 2 of this benchmark created on


Setup

const string = `0123456789abcdA`

Test runner

Ready to run.

Testing in
TestOps/sec
i
return /\D/i.test(String(string)) ? false : true;
ready
no i
return /\D/.test(String(string)) ? false : true;
ready
char group i
return /[^0-9]/i.test(String(string)) ? false : true;
ready
char group no i
return /[^0-9]/.test(String(string)) ? false : true;
ready
iv
return /\D/iv.test(String(string)) ? false : true;
ready
no i but v
return /\D/v.test(String(string)) ? false : true;
ready
char group iv
return /[^0-9]/iv.test(String(string)) ? false : true;
ready
char group no i but v
return /[^0-9]/v.test(String(string)) ? false : true;
ready

Revisions

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