summaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark')
-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
-rwxr-xr-xbenchmark/index.js6
-rw-r--r--benchmark/make-project/memory-default.js2
-rw-r--r--benchmark/make-project/render-default.js2
-rw-r--r--benchmark/make-project/server-stress-default.js2
-rw-r--r--benchmark/packages/timer/src/preview.ts2
-rw-r--r--benchmark/packages/timer/src/server.ts2
10 files changed, 20 insertions, 20 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';
diff --git a/benchmark/index.js b/benchmark/index.js
index d78d3010e..1c38993b1 100755
--- a/benchmark/index.js
+++ b/benchmark/index.js
@@ -1,7 +1,7 @@
-import fs from 'fs/promises';
-import path from 'path';
-import { pathToFileURL } from 'url';
import mri from 'mri';
+import fs from 'node:fs/promises';
+import path from 'node:path';
+import { pathToFileURL } from 'node:url';
const args = mri(process.argv.slice(2));
diff --git a/benchmark/make-project/memory-default.js b/benchmark/make-project/memory-default.js
index 021a42b0f..647233e7c 100644
--- a/benchmark/make-project/memory-default.js
+++ b/benchmark/make-project/memory-default.js
@@ -1,4 +1,4 @@
-import fs from 'fs/promises';
+import fs from 'node:fs/promises';
import { loremIpsum } from './_util.js';
/**
diff --git a/benchmark/make-project/render-default.js b/benchmark/make-project/render-default.js
index 38a06364d..3a01dcc47 100644
--- a/benchmark/make-project/render-default.js
+++ b/benchmark/make-project/render-default.js
@@ -1,4 +1,4 @@
-import fs from 'fs/promises';
+import fs from 'node:fs/promises';
import { loremIpsumHtml, loremIpsumMd } from './_util.js';
// Map of files to be generated and tested for rendering.
diff --git a/benchmark/make-project/server-stress-default.js b/benchmark/make-project/server-stress-default.js
index c7ff6b2b4..20094daa6 100644
--- a/benchmark/make-project/server-stress-default.js
+++ b/benchmark/make-project/server-stress-default.js
@@ -1,4 +1,4 @@
-import fs from 'fs/promises';
+import fs from 'node:fs/promises';
import { loremIpsum } from './_util.js';
/**
diff --git a/benchmark/packages/timer/src/preview.ts b/benchmark/packages/timer/src/preview.ts
index 1208830dd..4ee43ebd0 100644
--- a/benchmark/packages/timer/src/preview.ts
+++ b/benchmark/packages/timer/src/preview.ts
@@ -1,5 +1,5 @@
import type { CreatePreviewServer } from 'astro';
-import { createServer } from 'http';
+import { createServer } from 'node:http';
import enableDestroy from 'server-destroy';
const preview: CreatePreviewServer = async function ({ serverEntrypoint, host, port }) {
diff --git a/benchmark/packages/timer/src/server.ts b/benchmark/packages/timer/src/server.ts
index 5cfa4ad76..28a406841 100644
--- a/benchmark/packages/timer/src/server.ts
+++ b/benchmark/packages/timer/src/server.ts
@@ -1,7 +1,7 @@
import { polyfill } from '@astrojs/webapi';
import type { SSRManifest } from 'astro';
import { NodeApp } from 'astro/app/node';
-import type { IncomingMessage, ServerResponse } from 'http';
+import type { IncomingMessage, ServerResponse } from 'node:http';
polyfill(globalThis, {
exclude: 'window document',