Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
WebApp Test
(version: 0)
Comparing performance of:
Multiple equal vs Regexp vs Precocked Regexp
Created:
9 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
var option = "import", testR = new RegExp("[import|config]");
Tests:
Multiple equal
(option == "import" || option == "config")
Regexp
/[import|config]/.test(option)
Precocked Regexp
testR.test(option)
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (3)
Previous results
Fork
Test case name
Result
Multiple equal
Regexp
Precocked Regexp
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Related benchmarks:
WenApp Test2
Case insensitive string comparison 2
test test
정규식 vs includes
Comments
Confirm delete:
Do you really want to delete benchmark?