File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ struct Runner: ParsableCommand {
17
17
benchmark. addCSS ( )
18
18
benchmark. addNotFound ( )
19
19
benchmark. addGraphemeBreak ( )
20
+ benchmark. addHangulSyllable ( )
20
21
return benchmark
21
22
}
22
23
mutating func run( ) throws {
Original file line number Diff line number Diff line change @@ -12,5 +12,14 @@ extension BenchmarkRunner {
12
12
baseName: " GraphemeBreakNoCap " , regex: regex, input: input)
13
13
benchmark. register ( & self )
14
14
}
15
+
16
+ mutating func addHangulSyllable( ) {
17
+ let input = Inputs . graphemeBreakData
18
+ let regex = #"HANGUL SYLLABLE [A-Z]+(?:\.\.HANGUL SYLLABLE [A-Z]+)?"#
19
+
20
+ let benchmark = CrossBenchmark (
21
+ baseName: " HangulSyllable " , regex: regex, input: input)
22
+ benchmark. register ( & self )
23
+ }
15
24
}
16
25
You can’t perform that action at this time.
0 commit comments