Skip to content

Commit

Permalink
chore: add toArray benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
nbbeeken committed Jul 26, 2024
1 parent 96760f7 commit 53e2a8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions packages/driver-bench/src/cli.mts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ MONGODB_URI = MONGODB_URI.length === 0 ? 'mongodb://127.0.0.1:27017' : MONGODB_U

const client = new mongodbDriver.MongoClient(MONGODB_URI, { serverSelectionTimeoutMS: 2000 });
try {
console.log('server version', (await client.db('admin').command({ buildInfo: 1 })).version);
// console.log(await client.db('admin').command({ getParameter: '*' }));
console.log('server version:', (await client.db('admin').command({ buildInfo: 1 })).version);
await client.close();
console.log(`Benching driver at: ${driverPath}`);
console.log(systemInfo());
Expand Down
2 changes: 1 addition & 1 deletion packages/driver-bench/src/mod.mts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// TODO: This module is not really meant to be imported the CLI is currently the focus of how to utilize this code
// TODO: This module is not really meant to be imported. The CLI is currently the focus of how to utilize this code
// See wishlist in readme
export { Benchmark } from './mongoBench/benchmark.mjs';
export { Runner } from './mongoBench/runner.mjs';

0 comments on commit 53e2a8f

Please sign in to comment.