Changeset 4f3807d for Jenkinsfile


Ignore:
Timestamp:
Jul 14, 2022, 4:57:30 PM (2 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, master, pthread-emulation, qualifiedEnum
Children:
847bb6f
Parents:
1932e8a
Message:

Removed jenkins performance plots since they were not very useful

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Jenkinsfile

    r1932e8a r4f3807d  
    209209
    210210                if( Settings.Publish && !Settings.RunBenchmark ) { echo 'No results to publish!!!' }
    211 
    212                 def groupCompile = new PlotGroup('Compilation', 'duration (s) - lower is better', true)
    213                 def groupConcurrency = new PlotGroup('Concurrency', 'duration (n) - lower is better', false)
    214 
    215                 //Then publish the results
    216                 do_plot(Settings.RunBenchmark && Settings.Publish, 'compile'        , groupCompile    , false, 'Compilation')
    217                 do_plot(Settings.RunBenchmark && Settings.Publish, 'compile.diff'   , groupCompile    , true , 'Compilation (relative)')
    218                 do_plot(Settings.RunBenchmark && Settings.Publish, 'ctxswitch'      , groupConcurrency, false, 'Context Switching')
    219                 do_plot(Settings.RunBenchmark && Settings.Publish, 'ctxswitch.diff' , groupConcurrency, true , 'Context Switching (relative)')
    220                 do_plot(Settings.RunBenchmark && Settings.Publish, 'mutex'          , groupConcurrency, false, 'Mutual Exclusion')
    221                 do_plot(Settings.RunBenchmark && Settings.Publish, 'mutex.diff'     , groupConcurrency, true , 'Mutual Exclusion (relative)')
    222                 do_plot(Settings.RunBenchmark && Settings.Publish, 'scheduling'     , groupConcurrency, false, 'Internal and External Scheduling')
    223                 do_plot(Settings.RunBenchmark && Settings.Publish, 'scheduling.diff', groupConcurrency, true , 'Internal and External Scheduling (relative)')
    224211        }
    225212}
     
    376363                this.GitNewRef = ''
    377364                this.GitOldRef = ''
    378         }
    379 }
    380 
    381 class PlotGroup implements Serializable {
    382         public String name
    383         public String unit
    384         public boolean log
    385 
    386         PlotGroup(String name, String unit, boolean log) {
    387                 this.name = name
    388                 this.unit = unit
    389                 this.log = log
    390365        }
    391366}
     
    476451        }
    477452}
    478 
    479 def do_plot(boolean new_data, String file, PlotGroup group, boolean relative, String title) {
    480 
    481         if(new_data) {
    482                 echo "Publishing new data"
    483         }
    484 
    485         def series = new_data ? [[
    486                                 file: "${file}.csv",
    487                                 exclusionValues: '',
    488                                 displayTableFlag: false,
    489                                 inclusionFlag: 'OFF',
    490                                 url: ''
    491                         ]] : [];
    492 
    493         echo "file is ${BuildDir}/benchmark/${file}.csv, group ${group}, title ${title}"
    494         dir("${BuildDir}/benchmark/") {
    495                 plot csvFileName: "cforall-${env.BRANCH_NAME}-${file}.csv",
    496                         csvSeries: series,
    497                         group: "${group.name}",
    498                         title: "${title}",
    499                         style: 'lineSimple',
    500                         exclZero: false,
    501                         keepRecords: false,
    502                         logarithmic: !relative && group.log,
    503                         numBuilds: '120',
    504                         useDescr: true,
    505                         yaxis: group.unit,
    506                         yaxisMaximum: '',
    507                         yaxisMinimum: ''
    508         }
    509 }
Note: See TracChangeset for help on using the changeset viewer.