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 dbcb7fd commit c2b672fCopy full SHA for c2b672f
Sources/RegexBenchmark/Benchmark.swift
@@ -121,7 +121,7 @@ struct InputListNSBenchmark: RegexBenchmark {
121
/// A benchmark meant to be ran across multiple engines
122
struct CrossBenchmark {
123
/// Suffix added onto NSRegularExpression benchmarks
124
- static let nsSuffix = "_NS"
+ static var nsSuffix: String { "_NS" }
125
126
/// The base name of the benchmark
127
var baseName: String
@@ -219,7 +219,7 @@ struct CrossInputListBenchmark {
219
targets: inputs
220
))
221
runner.register(InputListNSBenchmark(
222
- name: baseName + "NS",
+ name: baseName + CrossBenchmark.nsSuffix,
223
regex: regex,
224
225
0 commit comments