mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-10-01 07:37:55 -05:00
Differ
This commit is contained in:
@@ -1,8 +1,14 @@
|
||||
import { seed } from "~/db/seed";
|
||||
import { installSeedClock } from "~/db/seed/core/frozen-clock";
|
||||
|
||||
const startedAt = Date.now();
|
||||
// installed before the seed modules load so even module-scope dates are frozen
|
||||
installSeedClock();
|
||||
|
||||
const startedAt = performance.now();
|
||||
|
||||
const { seed } = await import("~/db/seed");
|
||||
await seed();
|
||||
|
||||
// biome-ignore lint/suspicious/noConsole: CLI script output
|
||||
console.log(`Seeded in ${((Date.now() - startedAt) / 1000).toFixed(1)}s`);
|
||||
console.log(
|
||||
`Seeded in ${((performance.now() - startedAt) / 1000).toFixed(1)}s`,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user