Skip to content

Commit 0a4d382

Browse files
committed
Add single bench
1 parent a920460 commit 0a4d382

File tree

14 files changed

+209
-0
lines changed

14 files changed

+209
-0
lines changed

benchmark.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ function clearBuildFile() {
2020
recursive: true,
2121
force: true,
2222
})
23+
if (existsSync('./benchmark/next-devup-ui-single/.next'))
24+
rmSync('./benchmark/next-devup-ui-single/.next', {
25+
recursive: true,
26+
force: true,
27+
})
2328
if (existsSync('./benchmark/next-mui/.next'))
2429
rmSync('./benchmark/next-mui/.next', {
2530
recursive: true,
@@ -30,6 +35,11 @@ function clearBuildFile() {
3035
recursive: true,
3136
force: true,
3237
})
38+
if (existsSync('./benchmark/next-devup-ui-single/df'))
39+
rmSync('./benchmark/next-devup-ui-single/df', {
40+
recursive: true,
41+
force: true,
42+
})
3343
}
3444

3545
function checkDirSize(path) {
@@ -81,3 +91,13 @@ execSync('pnpm -F next-devup-ui-benchmark build', {
8191
})
8292
console.timeEnd('devup-ui')
8393
console.info('devup-ui', checkDirSize('./benchmark/next-devup-ui/.next'))
94+
95+
console.time('devup-ui-single')
96+
execSync('pnpm -F next-devup-ui-single-benchmark build', {
97+
stdio: 'inherit',
98+
})
99+
console.timeEnd('devup-ui-single')
100+
console.info(
101+
'devup-ui-single',
102+
checkDirSize('./benchmark/next-devup-ui-single/.next'),
103+
)
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.*
7+
.yarn/*
8+
!.yarn/patches
9+
!.yarn/plugins
10+
!.yarn/releases
11+
!.yarn/versions
12+
13+
# testing
14+
/coverage
15+
16+
# next.js
17+
/.next/
18+
/out/
19+
20+
# production
21+
/build
22+
23+
# misc
24+
.DS_Store
25+
*.pem
26+
27+
# debug
28+
npm-debug.log*
29+
yarn-debug.log*
30+
yarn-error.log*
31+
.pnpm-debug.log*
32+
33+
# env files (can opt-in for committing if needed)
34+
.env*
35+
36+
# vercel
37+
.vercel
38+
39+
# typescript
40+
*.tsbuildinfo
41+
next-env.d.ts
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
## Nextjs App
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { DevupUI } from '@devup-ui/next-plugin'
2+
3+
const nextConfig = {
4+
/* config options here */
5+
}
6+
7+
export default DevupUI(nextConfig, { singleCss: true })
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "next-devup-ui-single-benchmark",
3+
"version": "0.1.0",
4+
"type": "module",
5+
"private": true,
6+
"scripts": {
7+
"dev": "next dev",
8+
"build": "next build --experimental-debug-memory-usage",
9+
"start": "next start",
10+
"lint": "eslint"
11+
},
12+
"dependencies": {
13+
"react": "^19.1.1",
14+
"react-dom": "^19.1.1",
15+
"next": "^15.5.2",
16+
"@devup-ui/react": "workspace:*"
17+
},
18+
"devDependencies": {
19+
"@devup-ui/next-plugin": "workspace:*",
20+
"typescript": "^5",
21+
"@types/node": "^24",
22+
"@types/react": "^19",
23+
"@types/react-dom": "^19"
24+
}
25+
}
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)