Skip to content

Commit 526527e

Browse files
committed
[benchmark] Regenerate gyb
1 parent 8944591 commit 526527e

File tree

6 files changed

+84
-84
lines changed

6 files changed

+84
-84
lines changed

benchmark/single-source/DropFirst.swift

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public func run_DropFirstCountableRange(_ n: Int) {
9393
for element in s.dropFirst(dropCount) {
9494
result += element
9595
}
96-
CheckResults(result == sumCount)
96+
check(result == sumCount)
9797
}
9898
}
9999
@inline(never)
@@ -104,7 +104,7 @@ public func run_DropFirstSequence(_ n: Int) {
104104
for element in s.dropFirst(dropCount) {
105105
result += element
106106
}
107-
CheckResults(result == sumCount)
107+
check(result == sumCount)
108108
}
109109
}
110110
@inline(never)
@@ -115,7 +115,7 @@ public func run_DropFirstAnySequence(_ n: Int) {
115115
for element in s.dropFirst(dropCount) {
116116
result += element
117117
}
118-
CheckResults(result == sumCount)
118+
check(result == sumCount)
119119
}
120120
}
121121
@inline(never)
@@ -126,7 +126,7 @@ public func run_DropFirstAnySeqCntRange(_ n: Int) {
126126
for element in s.dropFirst(dropCount) {
127127
result += element
128128
}
129-
CheckResults(result == sumCount)
129+
check(result == sumCount)
130130
}
131131
}
132132
@inline(never)
@@ -137,7 +137,7 @@ public func run_DropFirstAnySeqCRangeIter(_ n: Int) {
137137
for element in s.dropFirst(dropCount) {
138138
result += element
139139
}
140-
CheckResults(result == sumCount)
140+
check(result == sumCount)
141141
}
142142
}
143143
@inline(never)
@@ -148,7 +148,7 @@ public func run_DropFirstAnyCollection(_ n: Int) {
148148
for element in s.dropFirst(dropCount) {
149149
result += element
150150
}
151-
CheckResults(result == sumCount)
151+
check(result == sumCount)
152152
}
153153
}
154154
@inline(never)
@@ -159,7 +159,7 @@ public func run_DropFirstArray(_ n: Int) {
159159
for element in s.dropFirst(dropCount) {
160160
result += element
161161
}
162-
CheckResults(result == sumCount)
162+
check(result == sumCount)
163163
}
164164
}
165165
@inline(never)
@@ -170,7 +170,7 @@ public func run_DropFirstCountableRangeLazy(_ n: Int) {
170170
for element in s.dropFirst(dropCount) {
171171
result += element
172172
}
173-
CheckResults(result == sumCount)
173+
check(result == sumCount)
174174
}
175175
}
176176
@inline(never)
@@ -181,7 +181,7 @@ public func run_DropFirstSequenceLazy(_ n: Int) {
181181
for element in s.dropFirst(dropCount) {
182182
result += element
183183
}
184-
CheckResults(result == sumCount)
184+
check(result == sumCount)
185185
}
186186
}
187187
@inline(never)
@@ -192,7 +192,7 @@ public func run_DropFirstAnySequenceLazy(_ n: Int) {
192192
for element in s.dropFirst(dropCount) {
193193
result += element
194194
}
195-
CheckResults(result == sumCount)
195+
check(result == sumCount)
196196
}
197197
}
198198
@inline(never)
@@ -203,7 +203,7 @@ public func run_DropFirstAnySeqCntRangeLazy(_ n: Int) {
203203
for element in s.dropFirst(dropCount) {
204204
result += element
205205
}
206-
CheckResults(result == sumCount)
206+
check(result == sumCount)
207207
}
208208
}
209209
@inline(never)
@@ -214,7 +214,7 @@ public func run_DropFirstAnySeqCRangeIterLazy(_ n: Int) {
214214
for element in s.dropFirst(dropCount) {
215215
result += element
216216
}
217-
CheckResults(result == sumCount)
217+
check(result == sumCount)
218218
}
219219
}
220220
@inline(never)
@@ -225,7 +225,7 @@ public func run_DropFirstAnyCollectionLazy(_ n: Int) {
225225
for element in s.dropFirst(dropCount) {
226226
result += element
227227
}
228-
CheckResults(result == sumCount)
228+
check(result == sumCount)
229229
}
230230
}
231231
@inline(never)
@@ -236,7 +236,7 @@ public func run_DropFirstArrayLazy(_ n: Int) {
236236
for element in s.dropFirst(dropCount) {
237237
result += element
238238
}
239-
CheckResults(result == sumCount)
239+
check(result == sumCount)
240240
}
241241
}
242242

benchmark/single-source/DropLast.swift

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public func run_DropLastCountableRange(_ n: Int) {
9393
for element in s.dropLast(dropCount) {
9494
result += element
9595
}
96-
CheckResults(result == sumCount)
96+
check(result == sumCount)
9797
}
9898
}
9999
@inline(never)
@@ -104,7 +104,7 @@ public func run_DropLastSequence(_ n: Int) {
104104
for element in s.dropLast(dropCount) {
105105
result += element
106106
}
107-
CheckResults(result == sumCount)
107+
check(result == sumCount)
108108
}
109109
}
110110
@inline(never)
@@ -115,7 +115,7 @@ public func run_DropLastAnySequence(_ n: Int) {
115115
for element in s.dropLast(dropCount) {
116116
result += element
117117
}
118-
CheckResults(result == sumCount)
118+
check(result == sumCount)
119119
}
120120
}
121121
@inline(never)
@@ -126,7 +126,7 @@ public func run_DropLastAnySeqCntRange(_ n: Int) {
126126
for element in s.dropLast(dropCount) {
127127
result += element
128128
}
129-
CheckResults(result == sumCount)
129+
check(result == sumCount)
130130
}
131131
}
132132
@inline(never)
@@ -137,7 +137,7 @@ public func run_DropLastAnySeqCRangeIter(_ n: Int) {
137137
for element in s.dropLast(dropCount) {
138138
result += element
139139
}
140-
CheckResults(result == sumCount)
140+
check(result == sumCount)
141141
}
142142
}
143143
@inline(never)
@@ -148,7 +148,7 @@ public func run_DropLastAnyCollection(_ n: Int) {
148148
for element in s.dropLast(dropCount) {
149149
result += element
150150
}
151-
CheckResults(result == sumCount)
151+
check(result == sumCount)
152152
}
153153
}
154154
@inline(never)
@@ -159,7 +159,7 @@ public func run_DropLastArray(_ n: Int) {
159159
for element in s.dropLast(dropCount) {
160160
result += element
161161
}
162-
CheckResults(result == sumCount)
162+
check(result == sumCount)
163163
}
164164
}
165165
@inline(never)
@@ -170,7 +170,7 @@ public func run_DropLastCountableRangeLazy(_ n: Int) {
170170
for element in s.dropLast(dropCount) {
171171
result += element
172172
}
173-
CheckResults(result == sumCount)
173+
check(result == sumCount)
174174
}
175175
}
176176
@inline(never)
@@ -181,7 +181,7 @@ public func run_DropLastSequenceLazy(_ n: Int) {
181181
for element in s.dropLast(dropCount) {
182182
result += element
183183
}
184-
CheckResults(result == sumCount)
184+
check(result == sumCount)
185185
}
186186
}
187187
@inline(never)
@@ -192,7 +192,7 @@ public func run_DropLastAnySequenceLazy(_ n: Int) {
192192
for element in s.dropLast(dropCount) {
193193
result += element
194194
}
195-
CheckResults(result == sumCount)
195+
check(result == sumCount)
196196
}
197197
}
198198
@inline(never)
@@ -203,7 +203,7 @@ public func run_DropLastAnySeqCntRangeLazy(_ n: Int) {
203203
for element in s.dropLast(dropCount) {
204204
result += element
205205
}
206-
CheckResults(result == sumCount)
206+
check(result == sumCount)
207207
}
208208
}
209209
@inline(never)
@@ -214,7 +214,7 @@ public func run_DropLastAnySeqCRangeIterLazy(_ n: Int) {
214214
for element in s.dropLast(dropCount) {
215215
result += element
216216
}
217-
CheckResults(result == sumCount)
217+
check(result == sumCount)
218218
}
219219
}
220220
@inline(never)
@@ -225,7 +225,7 @@ public func run_DropLastAnyCollectionLazy(_ n: Int) {
225225
for element in s.dropLast(dropCount) {
226226
result += element
227227
}
228-
CheckResults(result == sumCount)
228+
check(result == sumCount)
229229
}
230230
}
231231
@inline(never)
@@ -236,7 +236,7 @@ public func run_DropLastArrayLazy(_ n: Int) {
236236
for element in s.dropLast(dropCount) {
237237
result += element
238238
}
239-
CheckResults(result == sumCount)
239+
check(result == sumCount)
240240
}
241241
}
242242

benchmark/single-source/DropWhile.swift

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public func run_DropWhileCountableRange(_ n: Int) {
9393
for element in s.drop(while: {$0 < dropCount} ) {
9494
result += element
9595
}
96-
CheckResults(result == sumCount)
96+
check(result == sumCount)
9797
}
9898
}
9999
@inline(never)
@@ -104,7 +104,7 @@ public func run_DropWhileSequence(_ n: Int) {
104104
for element in s.drop(while: {$0 < dropCount} ) {
105105
result += element
106106
}
107-
CheckResults(result == sumCount)
107+
check(result == sumCount)
108108
}
109109
}
110110
@inline(never)
@@ -115,7 +115,7 @@ public func run_DropWhileAnySequence(_ n: Int) {
115115
for element in s.drop(while: {$0 < dropCount} ) {
116116
result += element
117117
}
118-
CheckResults(result == sumCount)
118+
check(result == sumCount)
119119
}
120120
}
121121
@inline(never)
@@ -126,7 +126,7 @@ public func run_DropWhileAnySeqCntRange(_ n: Int) {
126126
for element in s.drop(while: {$0 < dropCount} ) {
127127
result += element
128128
}
129-
CheckResults(result == sumCount)
129+
check(result == sumCount)
130130
}
131131
}
132132
@inline(never)
@@ -137,7 +137,7 @@ public func run_DropWhileAnySeqCRangeIter(_ n: Int) {
137137
for element in s.drop(while: {$0 < dropCount} ) {
138138
result += element
139139
}
140-
CheckResults(result == sumCount)
140+
check(result == sumCount)
141141
}
142142
}
143143
@inline(never)
@@ -148,7 +148,7 @@ public func run_DropWhileAnyCollection(_ n: Int) {
148148
for element in s.drop(while: {$0 < dropCount} ) {
149149
result += element
150150
}
151-
CheckResults(result == sumCount)
151+
check(result == sumCount)
152152
}
153153
}
154154
@inline(never)
@@ -159,7 +159,7 @@ public func run_DropWhileArray(_ n: Int) {
159159
for element in s.drop(while: {$0 < dropCount} ) {
160160
result += element
161161
}
162-
CheckResults(result == sumCount)
162+
check(result == sumCount)
163163
}
164164
}
165165
@inline(never)
@@ -170,7 +170,7 @@ public func run_DropWhileCountableRangeLazy(_ n: Int) {
170170
for element in s.drop(while: {$0 < dropCount} ) {
171171
result += element
172172
}
173-
CheckResults(result == sumCount)
173+
check(result == sumCount)
174174
}
175175
}
176176
@inline(never)
@@ -181,7 +181,7 @@ public func run_DropWhileSequenceLazy(_ n: Int) {
181181
for element in s.drop(while: {$0 < dropCount} ) {
182182
result += element
183183
}
184-
CheckResults(result == sumCount)
184+
check(result == sumCount)
185185
}
186186
}
187187
@inline(never)
@@ -192,7 +192,7 @@ public func run_DropWhileAnySequenceLazy(_ n: Int) {
192192
for element in s.drop(while: {$0 < dropCount} ) {
193193
result += element
194194
}
195-
CheckResults(result == sumCount)
195+
check(result == sumCount)
196196
}
197197
}
198198
@inline(never)
@@ -203,7 +203,7 @@ public func run_DropWhileAnySeqCntRangeLazy(_ n: Int) {
203203
for element in s.drop(while: {$0 < dropCount} ) {
204204
result += element
205205
}
206-
CheckResults(result == sumCount)
206+
check(result == sumCount)
207207
}
208208
}
209209
@inline(never)
@@ -214,7 +214,7 @@ public func run_DropWhileAnySeqCRangeIterLazy(_ n: Int) {
214214
for element in s.drop(while: {$0 < dropCount} ) {
215215
result += element
216216
}
217-
CheckResults(result == sumCount)
217+
check(result == sumCount)
218218
}
219219
}
220220
@inline(never)
@@ -225,7 +225,7 @@ public func run_DropWhileAnyCollectionLazy(_ n: Int) {
225225
for element in s.drop(while: {$0 < dropCount} ) {
226226
result += element
227227
}
228-
CheckResults(result == sumCount)
228+
check(result == sumCount)
229229
}
230230
}
231231
@inline(never)
@@ -236,7 +236,7 @@ public func run_DropWhileArrayLazy(_ n: Int) {
236236
for element in s.drop(while: {$0 < dropCount} ) {
237237
result += element
238238
}
239-
CheckResults(result == sumCount)
239+
check(result == sumCount)
240240
}
241241
}
242242

0 commit comments

Comments
 (0)