We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60d0c30 commit d45da75Copy full SHA for d45da75
test/benchmarks/mongoBench/suites/singleBench.js
@@ -13,7 +13,14 @@ const {
13
14
function makeSingleBench(suite) {
15
suite
16
- .benchmark('emptyAsyncFunction', benchmark => benchmark.taskSize(1).task(async function () {}))
+ .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
+ )
24
.benchmark('runCommand', benchmark =>
25
benchmark
26
.taskSize(0.16)
0 commit comments