Skip to content

Commit 737b1f9

Browse files
committed
chore: update bench
1 parent ecd6666 commit 737b1f9

4 files changed

Lines changed: 12 additions & 87 deletions

File tree

benchmark.mjs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,16 @@ class BuildTool {
4848
}
4949

5050
const buildTools = [
51-
// new BuildTool("Turbopack 13.3.0 ", 3000, "start:turbopack", /(.+)ms/),
52-
// new BuildTool("Rspack 0.2.5", 8080, "start:rspack", /Time: (.+)ms/),
53-
// new BuildTool(
54-
// "Webpack(babel) 5.88.0",
55-
// 8081,
56-
// "start:webpack",
57-
// /compiled successfully in (.+) ms/
58-
// ),
51+
new BuildTool("Turbopack 13.4.8 ", 3000, "start:turbopack", /(.+)ms/),
52+
new BuildTool("Rspack 0.2.5", 8080, "start:rspack", /Time: (.+)ms/),
53+
new BuildTool(
54+
"Webpack(babel) 5.88.0",
55+
8081,
56+
"start:webpack",
57+
/compiled successfully in (.+) ms/
58+
),
5959
new BuildTool("Vite 4.3.9", 5173, "start:vite", /ready in (.+) ms/),
60-
// new BuildTool("Farm 0.10.1", 9000, "start", /Ready on (?:.+) in (.+)ms/),
60+
new BuildTool("Farm 0.10.1", 9000, "start", /Ready on (?:.+) in (.+)ms/),
6161
];
6262

6363
const browser = await puppeteer.launch();
@@ -82,7 +82,7 @@ async function runBenchmark() {
8282

8383
for (const buildTool of buildTools) {
8484
const time = await buildTool.startServer();
85-
console.log(time);
85+
// console.log(time);
8686
const page = await browser.newPage();
8787
const start = Date.now();
8888

@@ -103,7 +103,7 @@ async function runBenchmark() {
103103
results[buildTool.name].onLoadTime = loadTime;
104104
});
105105

106-
console.log("Navigating to", `http://localhost:${buildTool.port}`);
106+
// console.log("Navigating to", `http://localhost:${buildTool.port}`);
107107
await page.goto(`http://localhost:${buildTool.port}`);
108108
page.on("console", (event) => {
109109
const isFinished = () => {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"core-js": "^3.31.0",
2626
"css-loader": "^6.7.3",
2727
"html-webpack-plugin": "^5.5.0",
28-
"next": "^13.3.0",
28+
"next": "^13.4.8",
2929
"react-refresh": "^0.14.0",
3030
"style-loader": "^3.3.1",
3131
"vite": "^4.3.9",

src/comps/triangle.jsx

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -36,41 +36,3 @@ function Container({ style }) {
3636
}
3737

3838
export default React.memo(Container);
39-
40-
console.log('root hmr');
41-
42-
console.log('root hmr');
43-
44-
console.log('root hmr');
45-
46-
console.log('root hmr');
47-
48-
console.log('root hmr');
49-
50-
console.log('root hmr');
51-
52-
console.log('root hmr');
53-
54-
console.log('root hmr');
55-
56-
console.log('root hmr');
57-
58-
console.log('root hmr');
59-
60-
console.log('root hmr');
61-
62-
console.log('root hmr');
63-
64-
console.log('root hmr');
65-
66-
console.log('root hmr');
67-
68-
console.log('root hmr');
69-
70-
console.log('root hmr');
71-
72-
console.log('root hmr');
73-
74-
console.log('root hmr');
75-
76-
console.log('root hmr');

src/comps/triangle_1_1_2_1_2_2_1.jsx

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -25,40 +25,3 @@ function Triangle({ style }) {
2525

2626
export default React.memo(Triangle);
2727

28-
console.log('leaf hmr');
29-
30-
console.log('leaf hmr');
31-
32-
console.log('leaf hmr');
33-
34-
console.log('leaf hmr');
35-
36-
console.log('leaf hmr');
37-
38-
console.log('leaf hmr');
39-
40-
console.log('leaf hmr');
41-
42-
console.log('leaf hmr');
43-
44-
console.log('leaf hmr');
45-
46-
console.log('leaf hmr');
47-
48-
console.log('leaf hmr');
49-
50-
console.log('leaf hmr');
51-
52-
console.log('leaf hmr');
53-
54-
console.log('leaf hmr');
55-
56-
console.log('leaf hmr');
57-
58-
console.log('leaf hmr');
59-
60-
console.log('leaf hmr');
61-
62-
console.log('leaf hmr');
63-
64-
console.log('leaf hmr');

0 commit comments

Comments
 (0)