We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb64036 commit 1237f9aCopy full SHA for 1237f9a
Sources/RegexBenchmark/CLI.swift
@@ -31,11 +31,7 @@ struct Runner: ParsableCommand {
31
32
mutating func run() throws {
33
var runner = BenchmarkRunner.makeRunner(samples, outputPath)
34
-
35
- if excludeNs {
36
- self.specificBenchmarks.append("((?!NS).)*")
37
- }
38
+
39
if !self.specificBenchmarks.isEmpty {
40
runner.suite = runner.suite.filter { b in
41
specificBenchmarks.contains { pattern in
@@ -44,6 +40,10 @@ struct Runner: ParsableCommand {
44
}
45
46
42
43
+ if excludeNs {
+ runner.suite = runner.suite.filter { b in !b.name.contains("NS") }
+ }
47
switch (profile, debug) {
48
case (true, true): print("Cannot run both profile and debug")
49
case (true, false): runner.profile()
0 commit comments