|
1 | 1 | import { existsSync } from 'node:fs'; |
2 | 2 | import { fileURLToPath } from 'node:url'; |
3 | | -import { build } from 'astro'; |
4 | 3 | import { beforeAll, bench, describe } from 'vitest'; |
5 | 4 |
|
6 | | -const staticRoot = fileURLToPath(new URL('../static-projects/build-static', import.meta.url)); |
7 | | -const hybridRoot = fileURLToPath(new URL('../static-projects/build-hybrid', import.meta.url)); |
8 | | -const serverRoot = fileURLToPath(new URL('../static-projects/build-server', import.meta.url)); |
9 | 5 | const renderRoot = new URL('../projects/render-bench/', import.meta.url); |
10 | 6 |
|
11 | 7 | let streamingApp; |
@@ -51,38 +47,3 @@ describe('Bench rendering', () => { |
51 | 47 | await nonStreamingApp.render(request); |
52 | 48 | }); |
53 | 49 | }); |
54 | | - |
55 | | -describe('Bench build time', () => { |
56 | | - bench( |
57 | | - 'Build: full static site', |
58 | | - async () => { |
59 | | - await build({ |
60 | | - root: staticRoot, |
61 | | - logLevel: 'error', |
62 | | - }); |
63 | | - }, |
64 | | - { timeout: 300000, iterations: 3 }, |
65 | | - ); |
66 | | - |
67 | | - bench( |
68 | | - 'Build: hybrid site (static + server)', |
69 | | - async () => { |
70 | | - await build({ |
71 | | - root: hybridRoot, |
72 | | - logLevel: 'error', |
73 | | - }); |
74 | | - }, |
75 | | - { timeout: 300000, iterations: 3 }, |
76 | | - ); |
77 | | - |
78 | | - bench( |
79 | | - 'Build: full server site', |
80 | | - async () => { |
81 | | - await build({ |
82 | | - root: serverRoot, |
83 | | - logLevel: 'error', |
84 | | - }); |
85 | | - }, |
86 | | - { timeout: 300000, iterations: 3 }, |
87 | | - ); |
88 | | -}); |
0 commit comments