Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
test1___nerr2
(version: 1)
Comparing performance of:
regex vs includes
Created:
9 months ago
by:
Guest
Jump to the latest result
Script Preparation code:
const arr = ["top.suijidaohxl.77yrgdfs3x", "top.suijidaohxl.77ys6q5a82", "top.suijidaohxl.77yssdwjbw", "top.suijidaohxl.77yswhdsee", "top.suijidaohxl.77ytrfh4d4", "top.suijidaohxl.77yttrdrgz", "top.suijidaohxl.77yyztkie8", "top.suijidaohxl.77z4tg8pk5", "top.suijidaohxl.77zckc4txk", "top.suijidaohxl.77zdz682th", "top.suijidaohxl.77zewdw7ze", "top.suijidaohxl.77zgy2kk4j", "top.suijidaohxl.77zgybxsy4", "top.suijidaohxl.77zhicmyax", "top.suijidaohxl.77zifx8dyn", "top.suijidaohxl.77zmdrdjbf", "top.suijidaohxl.77znrmwmxx", "top.suijidaohxl.77zs2rnhkx", "top.suijidaohxl.77zs4a5fah", "top.suijidaohxl.77zscnyffa", "top.suijidaohxl.77zsesgycf", "top.suijidaohxl.77ztsswpyr", "top.suijidaohxl.77zwsjthrr", "top.suijidaohxl.77zyrd2r8n"] const regex = /^top\.suijidaohxl\.7{2}(?:y{1,2}(?:(?:(?:s{1,2}(?:6q5a82|dwjbw)|swhdse{2}|t{1,2}rdrgz|ztkie8)|t{1,2}rfh4d4)|rgdfs3x)|z(?:4tg8pk5|ckc4txk|ewdw7ze|gy(?:bxsy4|2k{2}4j)|hicmyax|dz682th|mdrdjbf|s(?:2rnhkx|4a5fah|esgycf|cnyf{2}a)|ifx8dyn|yrd2r8n|nrmwmx{2}|ts{2}wpyr|wsjthr{2}))$/;
Tests:
regex
"foo.bar.poop".match(regex);
includes
arr.includes("foo.bar.poop")
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
regex
includes
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
9 months ago
)
User agent:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0
Browser/OS:
Firefox 140 on Ubuntu
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
regex
50706176.0 Ops/sec
includes
29202682.0 Ops/sec
Related benchmarks:
Test Utagsync mod
Lodash CloneDeep vs Native spread - LARGE key set
Set union
String COMPARE
String concatenation-2021
Rafa speed test 1
LodashVSJavaScript
test1___nerr
test1___nerr1
Comments
Confirm delete:
Do you really want to delete benchmark?