File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,10 @@ struct Runner: ParsableCommand {
3737
3838 @Flag ( help: " Exclude running NSRegex benchmarks " )
3939 var excludeNs = false
40-
40+
41+ @Flag ( help: " Rather than specify specific-benchmarks as patterns, use exact names " )
42+ var exactName = false
43+
4144 @Flag ( help: """
4245Enable tracing of the engine (warning: lots of output). Prints out processor state each cycle
4346
@@ -73,7 +76,11 @@ swift build -c release -Xswiftc -DPROCESSOR_MEASUREMENTS_ENABLED
7376 if !self . specificBenchmarks. isEmpty {
7477 runner. suite = runner. suite. filter { b in
7578 specificBenchmarks. contains { pattern in
76- try ! Regex ( pattern) . firstMatch ( in: b. name) != nil
79+ if exactName {
80+ return pattern == b. name
81+ }
82+
83+ return try ! Regex ( pattern) . firstMatch ( in: b. name) != nil
7784 }
7885 }
7986 }
You can’t perform that action at this time.
0 commit comments