summaryrefslogtreecommitdiff
path: root/benchmark/bench
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/bench')
-rw-r--r--benchmark/bench/cli-startup.js2
-rw-r--r--benchmark/bench/memory.js4
-rw-r--r--benchmark/bench/render.js12
-rw-r--r--benchmark/bench/server-stress.js6
4 files changed, 12 insertions, 12 deletions
diff --git a/benchmark/bench/cli-startup.js b/benchmark/bench/cli-startup.js
index 42d14cd71..aa8880554 100644
--- a/benchmark/bench/cli-startup.js
+++ b/benchmark/bench/cli-startup.js
@@ -1,4 +1,4 @@
-import { fileURLToPath } from 'url';
+import { fileURLToPath } from 'node:url';
import { execaCommand } from 'execa';
import { markdownTable } from 'markdown-table';
import { astroBin, calculateStat } from './_util.js';
diff --git a/benchmark/bench/memory.js b/benchmark/bench/memory.js
index 1f0d8ab8b..34a4972f7 100644
--- a/benchmark/bench/memory.js
+++ b/benchmark/bench/memory.js
@@ -1,7 +1,7 @@
-import fs from 'fs/promises';
-import { fileURLToPath } from 'url';
import { execaCommand } from 'execa';
import { markdownTable } from 'markdown-table';
+import fs from 'node:fs/promises';
+import { fileURLToPath } from 'node:url';
import { astroBin } from './_util.js';
/** @typedef {Record<string, import('../../packages/astro/src/core/config/timer').Stat>} AstroTimerStat */
diff --git a/benchmark/bench/render.js b/benchmark/bench/render.js
index aaeb0d022..dae33f470 100644
--- a/benchmark/bench/render.js
+++ b/benchmark/bench/render.js
@@ -1,12 +1,12 @@
-import fs from 'fs/promises';
-import http from 'http';
-import path from 'path';
-import { fileURLToPath } from 'url';
import { execaCommand } from 'execa';
-import { waitUntilBusy } from 'port-authority';
import { markdownTable } from 'markdown-table';
-import { renderFiles } from '../make-project/render-default.js';
+import fs from 'node:fs/promises';
+import http from 'node:http';
+import path from 'node:path';
+import { fileURLToPath } from 'node:url';
+import { waitUntilBusy } from 'port-authority';
import { calculateStat } from '../make-project/_util.js';
+import { renderFiles } from '../make-project/render-default.js';
import { astroBin } from './_util.js';
const port = 4322;
diff --git a/benchmark/bench/server-stress.js b/benchmark/bench/server-stress.js
index 1bb64375e..ca165e239 100644
--- a/benchmark/bench/server-stress.js
+++ b/benchmark/bench/server-stress.js
@@ -1,9 +1,9 @@
-import fs from 'fs/promises';
-import { fileURLToPath } from 'url';
import autocannon from 'autocannon';
import { execaCommand } from 'execa';
-import { waitUntilBusy } from 'port-authority';
import { markdownTable } from 'markdown-table';
+import fs from 'node:fs/promises';
+import { fileURLToPath } from 'node:url';
+import { waitUntilBusy } from 'port-authority';
import pb from 'pretty-bytes';
import { astroBin } from './_util.js';