File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ const fs = require('fs/promises');
9
9
const path = require ( 'path' ) ;
10
10
const { once } = require ( 'events' ) ;
11
11
const { Task } = require ( 'dbx-js-tools/packages/bson-bench' ) ;
12
+ const { LIBRARY_SPEC } = require ( '../lib/granular/common' ) ;
12
13
13
14
const BENCHMARK_REGEX = / ( .* ) \. b e n c h \. j s $ / ;
14
15
const BENCHMARK_PATH = path . resolve ( `${ __dirname } /../lib/granular` ) ;
@@ -18,7 +19,7 @@ const DOCUMENT_ROOT = path.resolve(`${__dirname}/../documents`);
18
19
// FIXME(NODE-5759): replace this with a call to Package.install()
19
20
await new Task ( {
20
21
documentPath : path . resolve ( `${ DOCUMENT_ROOT } /binary_small.json` ) ,
21
- library : `bson#main` ,
22
+ library : LIBRARY_SPEC ,
22
23
iterations : 1 ,
23
24
warmup : 1 ,
24
25
operation : 'deserialize' ,
You can’t perform that action at this time.
0 commit comments