Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
RegExp Case Sensitivity
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Browser:
Chrome 120
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
2 years ago
Test name
Executions per second
Insensitive
4118761.0 Ops/sec
Sensitive
4008789.5 Ops/sec
Empty
12178244.0 Ops/sec
Script Preparation code:
listPathExclusionsA = [ // Static JS components and scripts /^\/advancedsetup\/(jsbundles|ckeditor)\/.+\.js$/i, // Not a static asset per se, but we don't parse the integ event or // search for it in the logs, and it can as much as 20% of our CE event // volume (across all integrations) during peak CE activity. This is // loaded each time the schedule window is opened. /^\/aspx\/appointments\/appttrial\.aspx$/i, // Additional events that we do not parse but each constitute // 0.6-1.5% of data volume so we might as well not waste customer, // logging, and NexHealth API bandwidth on these. /^\/advancedsetup\/progressnotes\/index$/i, /^\/advancedsetup\/patientdetail\/getpatinetheaderdetailsv3$/i, /^\/aspx\/patients\/advancednotes\.aspx$/i, /^\/aspx\/home\/advancedsearchpatients\.aspx$/i, /^\/aspx\/appointments\/quickschedule\.aspx$/i, /^\/aspx\/transactions\/advancedtreatplanquickentry\.aspx$/i, /^\/aspx\/charting\/advancedcharting\.aspx$/i, /^\/aspx\/charting\/restchart2\.aspx$/i, // The following are small yet frequent requests that we do not // need or parse. /^\/ASPX\/Appointments\/timer\.html$/i, /^\/ASPX\/GetProviderOperatories\.aspx$/i, /^\/ASPX\/xhr\.aspx$/i, // Used to look up CDN URLs for static assets /^\/token\/getToken$/i, /^\/ASPX\/Reports\/GetOfficeHippaLetters\.aspx$/i, /^\/ASPX\/Appointments\/GetProdValues\.aspx$/i, /^\/ASPX\/Home\/SetTicklerCounter\.aspx$/i, ]; listPathExclusionsB = []; listPathExclusionsC = [ // Static JS components and scripts /^\/advancedsetup\/(jsbundles|ckeditor)\/.+\.js$/, // Not a static asset per se, but we don't parse the integ event or // search for it in the logs, and it can as much as 20% of our CE event // volume (across all integrations) during peak CE activity. This is // loaded each time the schedule window is opened. /^\/aspx\/appointments\/appttrial\.aspx$/, // Additional events that we do not parse but each constitute // 0.6-1.5% of data volume so we might as well not waste customer, // logging, and NexHealth API bandwidth on these. /^\/advancedsetup\/progressnotes\/index$/, /^\/advancedsetup\/patientdetail\/getpatinetheaderdetailsv3$/, /^\/aspx\/patients\/advancednotes\.aspx$/, /^\/aspx\/home\/advancedsearchpatients\.aspx$/, /^\/aspx\/appointments\/quickschedule\.aspx$/, /^\/aspx\/transactions\/advancedtreatplanquickentry\.aspx$/, /^\/aspx\/charting\/advancedcharting\.aspx$/, /^\/aspx\/charting\/restchart2\.aspx$/, // The following are small yet frequent requests that we do not // need or parse. /^\/ASPX\/Appointments\/timer\.html$/, /^\/ASPX\/GetProviderOperatories\.aspx$/, /^\/ASPX\/xhr\.aspx$/, // Used to look up CDN URLs for static assets /^\/token\/getToken$/, /^\/ASPX\/Reports\/GetOfficeHippaLetters\.aspx$/, /^\/ASPX\/Appointments\/GetProdValues\.aspx$/, /^\/ASPX\/Home\/SetTicklerCounter\.aspx$/, ]; function findResource(path, listPathExclusions) { for (const exclusion of listPathExclusions) { if (exclusion.test(path)) { return true; } } return false; };
Tests:
Insensitive
findResource('/aspx/cats/dogs', listPathExclusionsA);
Sensitive
findResource('/aspx/cats/dogs', listPathExclusionsC);
Empty
findResource('/aspx/cats/dogs', listPathExclusionsB);