Skip to content

Commit 2f3154d

Browse files
clean up additional testing
1 parent be0806a commit 2f3154d

File tree

1 file changed

+5
-24
lines changed

1 file changed

+5
-24
lines changed

test/benchmarks/mongoBench/suites/multiBench.js

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,11 @@ function makeMultiBench(suite) {
155155
})
156156
.teardown(dropDb)
157157
.teardown(disconnectClient)
158-
).benchmark('aggregateAMillionDocuments', benchmark =>
158+
)
159+
.benchmark('aggregateAMillionDocumentsAndToArray', benchmark =>
159160
benchmark
160161
.taskSize(16)
161-
.setup(makeMakeClient(mongodbDriver))
162+
.setup(makeClient)
162163
.setup(connectClient)
163164
.setup(initDb)
164165
.setup(dropDb)
@@ -185,11 +186,11 @@ function makeMultiBench(suite) {
185186
.teardown(dropDb)
186187
.teardown(disconnectClient)
187188
)
188-
.benchmark('aggregateAMillionTweets', benchmark =>
189+
.benchmark('aggregateAMillionTweetsAndToArray', benchmark =>
189190
benchmark
190191
.taskSize(1500)
191192
.setup(makeLoadJSON('tweet.json'))
192-
.setup(makeMakeClient(mongodbDriver))
193+
.setup(makeClient)
193194
.setup(connectClient)
194195
.setup(initDb)
195196
.setup(dropDb)
@@ -215,26 +216,6 @@ function makeMultiBench(suite) {
215216
})
216217
.teardown(dropDb)
217218
.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)
238219
);
239220
}
240221

0 commit comments

Comments
 (0)