Skip to content

Commit b58f9d4

Browse files
committed
humanready starttime
1 parent aa3d50d commit b58f9d4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

internal/perf/src/memtest.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,12 @@ export function memtest(opts: MemtestOptions, setup: () => Promise<Server>) {
5656
async ({ expect }) => {
5757
const server = await setup();
5858

59-
const startTime = Date.now();
59+
const startTime = new Date()
60+
.toISOString()
61+
// replace time colons with dashes to make it a valid filename
62+
.replaceAll(':', '-')
63+
// remove milliseconds
64+
.split('.')[0];
6065

6166
const snapshots = await loadtest({
6267
...loadtestOpts,

0 commit comments

Comments
 (0)