ordo-one / package-benchmark

Swift benchmark runner with many performance metrics and great CI support
Apache License 2.0
326 stars 25 forks source link

regex examples #161

Closed JaapWijnen closed 1 year ago

JaapWijnen commented 1 year ago

Would you have some regex examples to use with for example a skip filter? I think I'm missing something here, can't get that flag to work for me

hassila commented 1 year ago

Try something like eg. (From mobile to the best of my memory but should give a hint - let me know if it helps):

Case sensitive contains "mystuff":

.*mystuff.*

Beginning with xxx:

xxx.*

Suffix of PERF

.*PERF

Any five chars followed by "suffix":

.....suffix

Basically it's the standard new regex specified by swift - there's tons of flexibility you can find some more examples from links here:

https://www.hackingwithswift.com/swift/5.7/regexes

hassila commented 1 year ago

You want to put it within quotes too of course:

".*SUFFIX"
hassila commented 1 year ago

swift package benchmark --filter ".*autoresizing"

is a concrete example...

JaapWijnen commented 1 year ago

Perfect! Thanks a lot