File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
test/benchmarks/driverBench Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ let bsonType = 'js-bson';
1111const { inspect } = require ( 'util' ) ;
1212const { writeFile } = require ( 'fs/promises' ) ;
1313const { makeParallelBenchmarks, makeSingleBench, makeMultiBench } = require ( '../mongoBench/suites' ) ;
14- const { MONGODB_URI , MONGODB_CLIENT_OPTIONS } = require ( './common' ) ;
14+ const { MONGODB_CLIENT_OPTIONS } = require ( './common' ) ;
1515
1616const hw = os . cpus ( ) ;
1717const ram = os . totalmem ( ) / 1024 ** 3 ;
@@ -91,7 +91,12 @@ benchmarkRunner
9191 info : {
9292 test_name : benchmarkName ,
9393 tags : [ bsonType ] ,
94- args : { MONGODB_URI , MONGODB_CLIENT_OPTIONS }
94+ args : {
95+ // Sadly args can only be int32
96+ ...( typeof MONGODB_CLIENT_OPTIONS . timeoutMS === 'number'
97+ ? { timeoutMS : MONGODB_CLIENT_OPTIONS . timeoutMS }
98+ : { } )
99+ }
95100 } ,
96101 metrics : [ { name : 'megabytes_per_second' , value : result } ]
97102 } ;
You can’t perform that action at this time.
0 commit comments