@@ -6,7 +6,7 @@ extension Benchmark {
66 case . whole:
77 let result = target. wholeMatch ( of: regex)
88 if let match = result {
9- if match. 0 . count > 100 {
9+ if match. 0 . count > 1000 {
1010 print ( " - Match: len = \( match. 0 . count) " )
1111 } else {
1212 print ( " - Match: \( match. 0 ) " )
@@ -22,7 +22,7 @@ extension Benchmark {
2222 }
2323
2424 print ( " - Total matches: \( results. count) " )
25- if results. count > 10 {
25+ if results. count > 100 {
2626 print ( " # Too many matches, not printing " )
2727 let avgLen = results. map ( { result in String ( target [ result. range] ) . count} )
2828 . reduce ( 0.0 , { $0 + Double( $1) } ) / Double( results. count)
@@ -32,7 +32,7 @@ extension Benchmark {
3232 }
3333
3434 for match in results {
35- if match. 0 . count > 100 {
35+ if match. 0 . count > 1000 {
3636 print ( " - Match: len = \( match. 0 . count) " )
3737 } else {
3838 print ( " - Match: \( match. 0 ) " )
@@ -42,7 +42,7 @@ extension Benchmark {
4242 case . first:
4343 let result = target. firstMatch ( of: regex)
4444 if let match = result {
45- if match. 0 . count > 100 {
45+ if match. 0 . count > 1000 {
4646 print ( " - Match: len = \( match. 0 . count) " )
4747 } else {
4848 print ( " - Match: \( match. 0 ) " )
@@ -66,13 +66,13 @@ extension NSBenchmark {
6666 }
6767
6868 print ( " - Total matches: \( results. count) " )
69- if results. count > 10 {
69+ if results. count > 100 {
7070 print ( " # Too many matches, not printing " )
7171 return
7272 }
7373
7474 for m in results {
75- if m. range. length > 100 {
75+ if m. range. length > 1000 {
7676 print ( " - Match: len = \( m. range. length) " )
7777 } else {
7878 print ( " - Match: \( target [ Range ( m. range, in: target) !] ) " )
@@ -81,7 +81,7 @@ extension NSBenchmark {
8181 case . first:
8282 let result = regex. firstMatch ( in: target, range: range)
8383 if let match = result {
84- if match. range. length > 100 {
84+ if match. range. length > 1000 {
8585 print ( " - Match: len = \( match. range. length) " )
8686 } else {
8787 print ( " - Match: \( target [ Range ( match. range, in: target) !] ) " )
0 commit comments