@@ -29,6 +29,11 @@ function clearBuildFile() {
2929 recursive : true ,
3030 force : true ,
3131 } )
32+ if ( existsSync ( './benchmark/next-panda-css/.next' ) )
33+ rmSync ( './benchmark/next-panda-css/.next' , {
34+ recursive : true ,
35+ force : true ,
36+ } )
3237 if ( existsSync ( './benchmark/next-devup-ui/df' ) )
3338 rmSync ( './benchmark/next-devup-ui/df' , {
3439 recursive : true ,
@@ -72,6 +77,15 @@ console.profileEnd('kuma-ui')
7277performance . mark ( 'kuma-ui-end' )
7378performance . measure ( 'kuma-ui' , 'kuma-ui-start' , 'kuma-ui-end' )
7479
80+ performance . mark ( 'panda-css-start' )
81+ console . profile ( 'panda-css' )
82+ execSync ( 'pnpm -F next-panda-css-benchmark build' , {
83+ stdio : 'inherit' ,
84+ } )
85+ console . profileEnd ( 'panda-css' )
86+ performance . mark ( 'panda-css-end' )
87+ performance . measure ( 'panda-css' , 'panda-css-start' , 'panda-css-end' )
88+
7589performance . mark ( 'chakra-ui-start' )
7690console . profile ( 'chakra-ui' )
7791execSync ( 'pnpm -F next-chakra-ui-benchmark build' , {
@@ -119,6 +133,13 @@ console.info(
119133 checkDirSize ( './benchmark/next-kuma-ui/.next' ) . toLocaleString ( ) + 'bytes' ,
120134)
121135
136+ console . info ( performance . getEntriesByName ( 'panda-css' ) )
137+
138+ console . info (
139+ 'panda-css' ,
140+ checkDirSize ( './benchmark/next-panda-css/.next' ) . toLocaleString ( ) + 'bytes' ,
141+ )
142+
122143console . info ( performance . getEntriesByName ( 'chakra-ui' ) )
123144
124145console . info (
0 commit comments