@@ -155,10 +155,11 @@ function makeMultiBench(suite) {
155
155
} )
156
156
. teardown ( dropDb )
157
157
. teardown ( disconnectClient )
158
- ) . benchmark ( 'aggregateAMillionDocuments' , benchmark =>
158
+ )
159
+ . benchmark ( 'aggregateAMillionDocumentsAndToArray' , benchmark =>
159
160
benchmark
160
161
. taskSize ( 16 )
161
- . setup ( makeMakeClient ( mongodbDriver ) )
162
+ . setup ( makeClient )
162
163
. setup ( connectClient )
163
164
. setup ( initDb )
164
165
. setup ( dropDb )
@@ -185,11 +186,11 @@ function makeMultiBench(suite) {
185
186
. teardown ( dropDb )
186
187
. teardown ( disconnectClient )
187
188
)
188
- . benchmark ( 'aggregateAMillionTweets ' , benchmark =>
189
+ . benchmark ( 'aggregateAMillionTweetsAndToArray ' , benchmark =>
189
190
benchmark
190
191
. taskSize ( 1500 )
191
192
. setup ( makeLoadJSON ( 'tweet.json' ) )
192
- . setup ( makeMakeClient ( mongodbDriver ) )
193
+ . setup ( makeClient )
193
194
. setup ( connectClient )
194
195
. setup ( initDb )
195
196
. setup ( dropDb )
@@ -215,26 +216,6 @@ function makeMultiBench(suite) {
215
216
} )
216
217
. teardown ( dropDb )
217
218
. teardown ( disconnectClient )
218
- )
219
- . benchmark ( 'findManyAndEmptyAMillionCursor' , benchmark =>
220
- benchmark
221
- . taskSize ( 16.22 )
222
- . setup ( makeMakeClient ( mongodbDriver ) )
223
- . setup ( connectClient )
224
- . setup ( initDb )
225
- . setup ( dropDb )
226
- . setup ( initCollection )
227
- . setup ( async function ( ) {
228
- await this . collection . insertMany ( Array . from ( { length : 1_000_000 } , ( ) => ( { field : 0 } ) ) ) ;
229
- } )
230
- . task ( async function findManyAndEmptyCursor ( ) {
231
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
232
- for await ( const _ of this . collection . find ( { } ) ) {
233
- // do nothing
234
- }
235
- } )
236
- . teardown ( dropDb )
237
- . teardown ( disconnectClient )
238
219
) ;
239
220
}
240
221
0 commit comments