Skip to content

Commit b7e58e8

Browse files
committed
use import with
1 parent 7b642b9 commit b7e58e8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

table.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
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
}

0 commit comments

Comments
 (0)