Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Regexp vs regexp precompiled
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:140.0) Gecko/20100101 Firefox/140.0
Browser:
Firefox 140
Operating system:
Mac OS X 10.15
Device Platform:
Desktop
Date tested:
one month ago
inline
11.9M/s
precompiled
9.6M/s
View exact numbers
Test name
Executions per second
✓
inline
11,932,271 Ops/sec
precompiled
9,563,379 Ops/sec
Script Preparation code:
const regex = /^TC/
Tests:
inline
"TP-asd".replace(/^TC/, "")
precompiled
"TP-asd".replace(regex, "")