File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed
Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ export async function runSmokeTests({
8282 } ) ;
8383 }
8484 const perfResults : PerfTestResult [ ] = [ ] ;
85+ const commonPerfTags = [ process . arch , process . platform ] ;
8586
8687 for ( const {
8788 name,
@@ -365,7 +366,7 @@ export async function runSmokeTests({
365366 perfResults . push ( {
366367 info : {
367368 test_name : name ,
368- tags : [ ...( tags ?? [ ] ) , process . arch , process . platform ] ,
369+ tags : [ ...( tags ?? [ ] ) , ... commonPerfTags ] ,
369370 } ,
370371 created_at,
371372 completed_at,
@@ -378,6 +379,22 @@ export async function runSmokeTests({
378379 }
379380 }
380381 if ( wantPerformanceTesting ) {
382+ perfResults . push ( {
383+ info : {
384+ test_name : 'executable_size' ,
385+ tags : [ ...commonPerfTags ] ,
386+ } ,
387+ created_at : new Date ( ) . toISOString ( ) ,
388+ completed_at : new Date ( ) . toISOString ( ) ,
389+ artifacts : [ ] ,
390+ metrics : [
391+ {
392+ name : 'size_bytes_mean' ,
393+ type : 'MEAN' ,
394+ value : ( await fs . stat ( process . execPath ) ) . size ,
395+ } ,
396+ ] ,
397+ } ) ;
381398 console . log ( JSON . stringify ( perfResults ) ) ;
382399 } else {
383400 console . log ( 'all tests passed' ) ;
You can’t perform that action at this time.
0 commit comments