Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Measure date regex
(version: 0)
Comparing performance of:
Date regex vs Date regex 2
Created:
one year ago
by:
Guest
Jump to the latest result
Tests:
Date regex
const date = new Date(); const regexISO8601 = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/; regexISO8601.test(date.toString()); date.toString();
Date regex 2
const date = new Date(); const regexISO8601 = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/; regexISO8601.test(date.toString()); date.toString();
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Date regex
Date regex 2
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one year ago
)
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Browser/OS:
Chrome 129 on Mac OS X 10.15.7
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
Date regex
902846.3 Ops/sec
Date regex 2
903534.7 Ops/sec
Related benchmarks:
parse date
Date.parse vs custom
Compare date format checking
Comparing date allocation
Creating date objects
Creating Date objects 350 vs 9000
new Date(date) vs new Date(normalizeToLocalDate(date))
Comments
Confirm delete:
Do you really want to delete benchmark?