Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
W-A-James committed Feb 27, 2025
1 parent c22023d commit 5ed4b71
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions test/bench/granular/mixed.bench.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import {
OPERATIONS,
ITERATIONS,
WARMUP,
LIBRARY_SPEC
LIBRARY_SPEC,
getMixedTestTags
} from './common';
import * as path from 'path';

Expand All @@ -31,17 +32,17 @@ async function main() {

const suite = new Suite('Mixed Documents');

// TODO:
for (const operation of OPERATIONS) {
for (const documentPath of mixedDocuments) {
const tags = getMixedTestTags(documentPath);
suite.task({
documentPath,
library: LIBRARY_SPEC,
iterations: ITERATIONS,
warmup: WARMUP,
operation,
options: OPTIONS[operation],
tags: ['mixed']
tags: tags
});
}
}
Expand Down
4 changes: 2 additions & 2 deletions test/bench/spec/bsonBench.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ type Metadata = {
const suite = new Suite('bson micro benchmarks');
const DOCUMENT_ROOT = resolve(`${__dirname}/../../documents`);
const { library } = readEnvVars();
const warmup = 1;
const iterations = 1;
const warmup = 1000;
const iterations = 10_000;
// Add flat bson encoding
suite.task({
documentPath: join(DOCUMENT_ROOT, 'flat_bson.json'),
Expand Down

0 comments on commit 5ed4b71

Please sign in to comment.