Skip to content

Commit d45da75

Browse files
committed
chore: return document
1 parent 60d0c30 commit d45da75

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

test/benchmarks/mongoBench/suites/singleBench.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,14 @@ const {
1313

1414
function makeSingleBench(suite) {
1515
suite
16-
.benchmark('emptyAsyncFunction', benchmark => benchmark.taskSize(1).task(async function () {}))
16+
.benchmark('returnDocument', benchmark =>
17+
benchmark
18+
.taskSize(1.531e-3) // One tweet is 1,531 bytes or 0.001531 MB
19+
.setup(makeLoadJSON('tweet.json'))
20+
.task(async function () {
21+
return this.doc;
22+
})
23+
)
1724
.benchmark('runCommand', benchmark =>
1825
benchmark
1926
.taskSize(0.16)

0 commit comments

Comments
 (0)