Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Character String and Regex time
(version: 1)
Comparing performance of:
Long vs Short
Created:
2 years ago
by:
Registered User
Jump to the latest result
Tests:
Long
const data = 'Women account for one of the groups most affected by the disparities in the legal system. Therefore, this sphere has been an area of intense interest for feminist researchers and activists. Subsequently, various standpoints are expressed through different means of communication, calling for an equal approach to justice for both' data.replace(/([a-z0-9_\-.+]+)@\w+(\.\w+)*/gi, '')
Short
const data = 'Women account for one of the groups most affected by the disparities in the legal system. Therefore, this sphere has been an area of intense interest for feminist researchers and activists.' data.replace(/([a-z0-9_\-.+]+)@\w+(\.\w+)*/gi, '')
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Long
Short
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
2 years ago
)
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
Browser/OS:
Chrome 122 on Mac OS X 10.15.7
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
Long
223127.7 Ops/sec
Short
415444.7 Ops/sec
Related benchmarks:
Regexp creation vs memoization
slice vs regex
Split vs Regex ISO Time
regex vs string functions
split1 vs regex
Comments
Confirm delete:
Do you really want to delete benchmark?