File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11/**
22 * @file table.mjs
33 * @description Generate a table from criterion output.
4- *
4+ *
55 * Usage:
66 * pnpm table [options]
7- *
7+ *
88 * # Options
99 * -f,--format <format> Output format. 'md' or 'csv'. Default: 'md'
1010 * -o,--output <path> Output file path. Prints to stdout if not set.
@@ -26,7 +26,7 @@ async function readData() {
2626
2727 const measurements = await fs . promises . readdir ( `${ dir } /${ group } /${ bench } ` ) ;
2828 for ( const measurement of measurements ) {
29- const json = await import ( `${ dir } /${ group } /${ bench } /${ measurement } /new/estimates.json` , { assert : { type : "json" } } ) ;
29+ const json = await import ( `${ dir } /${ group } /${ bench } /${ measurement } /new/estimates.json` , { with : { type : "json" } } ) ;
3030 const duration_ms = json . default . mean . point_estimate / 1_000_000 ;
3131 data [ group ] [ bench ] [ measurement ] ||= { duration_ms } ;
3232 }
You can’t perform that action at this time.
0 commit comments