Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Test RegExp Performance
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:125.0) Gecko/20100101 Firefox/125.0
Browser:
Firefox 125
Operating system:
Mac OS X 10.15
Device Platform:
Desktop
Date tested:
2 years ago
Test name
Executions per second
1
20610048.0 Ops/sec
2
11573340.0 Ops/sec
Script Preparation code:
var reConstructor = new RegExp('^[0-9a-fA-F]{24}$')
Tests:
1
reConstructor.test('132abc67219f019afe12901a')
2
new RegExp('^[0-9a-fA-F]{24}$').test('132abc67219f019afe12901a')