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 03fe8d6 commit 5667705Copy full SHA for 5667705
Sources/RegexBenchmark/CLI.swift
@@ -17,6 +17,7 @@ struct Runner: ParsableCommand {
17
benchmark.addCSS()
18
benchmark.addNotFound()
19
benchmark.addGraphemeBreak()
20
+ benchmark.addHangulSyllable()
21
return benchmark
22
}
23
mutating func run() throws {
Sources/RegexBenchmark/Suite/GraphemeBreak.swift
@@ -12,5 +12,14 @@ extension BenchmarkRunner {
12
baseName: "GraphemeBreakNoCap", regex: regex, input: input)
13
benchmark.register(&self)
14
15
+
16
+ mutating func addHangulSyllable() {
+ let input = Inputs.graphemeBreakData
+ let regex = #"HANGUL SYLLABLE [A-Z]+(?:\.\.HANGUL SYLLABLE [A-Z]+)?"#
+ let benchmark = CrossBenchmark(
+ baseName: "HangulSyllable", regex: regex, input: input)
+ benchmark.register(&self)
+ }
24
25
0 commit comments