@@ -320,7 +320,7 @@ $(function () {
320
320
function renderGroupHeader ( scenario ) {
321
321
const $output = $ ( '<div>' ) ;
322
322
if ( urlParams . group ) {
323
- $ . getJSON ( `benchmark_output/runs/ ${ suite } /groups_metadata.json` , { } , ( response ) => {
323
+ $ . getJSON ( groupsMetadataJsonUrl ( suite ) , { } , ( response ) => {
324
324
const group = response [ urlParams . group ] ;
325
325
if ( group ) {
326
326
let groupName = group . display_name ;
@@ -622,19 +622,19 @@ $(function () {
622
622
623
623
// Paths (parallel arrays corresponding to `runSpecs`)
624
624
const statsPaths = runSpecs . map ( ( runSpec ) => {
625
- return `benchmark_output/runs/ ${ suite } / ${ runSpec . name } /stats.json` ;
625
+ return statsJsonUrl ( suite , runSpec . name ) ;
626
626
} ) ;
627
627
const perInstanceStatsPaths = runSpecs . map ( ( runSpec ) => {
628
- return `benchmark_output/runs/ ${ suite } / ${ runSpec . name } /per_instance_stats_slim.json` ;
628
+ return perInstanceStatsJsonUrl ( suite , runSpec . name ) ;
629
629
} ) ;
630
630
const scenarioPaths = runSpecs . map ( ( runSpec ) => {
631
- return `benchmark_output/runs/ ${ suite } / ${ runSpec . name } /scenario.json` ;
631
+ return scenarioJsonUrl ( suite , runSpec . name ) ;
632
632
} ) ;
633
633
const scenarioStatePaths = runSpecs . map ( ( runSpec ) => {
634
- return `benchmark_output/runs/ ${ suite } / ${ runSpec . name } /scenario_state_slim.json` ;
634
+ return scenarioStateJsonUrl ( suite , runSpec . name ) ;
635
635
} ) ;
636
636
const runSpecPaths = runSpecs . map ( ( runSpec ) => {
637
- return `benchmark_output/runs/ ${ suite } / ${ runSpec . name } /run_spec.json` ;
637
+ return runSpecJsonUrl ( suite , runSpec . name ) ;
638
638
} ) ;
639
639
640
640
// Figure out short names for the runs based on where they differ
@@ -1047,7 +1047,7 @@ $(function () {
1047
1047
console . log ( 'schema' , raw ) ;
1048
1048
schema = new Schema ( raw ) ;
1049
1049
} ) ,
1050
- $ . get ( `benchmark_output/runs/ ${ suite } /summary.json` , { } , ( response ) => {
1050
+ $ . get ( summaryJsonUrl ( suite ) , { } , ( response ) => {
1051
1051
console . log ( 'summary' , response ) ;
1052
1052
summary = response ;
1053
1053
$summary . append ( `${ summary . suite } (last updated ${ summary . date } )` ) ;
@@ -1061,7 +1061,7 @@ $(function () {
1061
1061
} else if ( urlParams . runSpec || urlParams . runSpecs || urlParams . runSpecRegex ) {
1062
1062
// Predictions for a set of run specs (matching a regular expression)
1063
1063
$main . text ( 'Loading runs...' ) ;
1064
- $ . getJSON ( `benchmark_output/runs/ ${ suite } /run_specs.json` , { } , ( response ) => {
1064
+ $ . getJSON ( runSpecsJsonUrl ( suite ) , { } , ( response ) => {
1065
1065
$main . empty ( ) ;
1066
1066
const runSpecs = response ;
1067
1067
console . log ( 'runSpecs' , runSpecs ) ;
@@ -1091,15 +1091,15 @@ $(function () {
1091
1091
} else if ( urlParams . runs ) {
1092
1092
// All runs (with search)
1093
1093
$main . text ( 'Loading runs...' ) ;
1094
- $ . getJSON ( `benchmark_output/runs/ ${ suite } /run_specs.json` , { } , ( runSpecs ) => {
1094
+ $ . getJSON ( runSpecsJsonUrl ( suite ) , { } , ( runSpecs ) => {
1095
1095
$main . empty ( ) ;
1096
1096
console . log ( 'runSpecs' , runSpecs ) ;
1097
1097
$main . append ( renderHeader ( 'Runs' , renderRunsOverview ( runSpecs ) ) ) ;
1098
1098
} ) ;
1099
1099
} else if ( urlParams . groups ) {
1100
1100
// All groups
1101
1101
$main . text ( 'Loading groups...' ) ;
1102
- const path = `benchmark_output/runs/ ${ suite } /groups.json` ;
1102
+ const path = groupsJsonUrl ( suite ) ;
1103
1103
$ . getJSON ( path , { } , ( tables ) => {
1104
1104
$main . empty ( ) ;
1105
1105
console . log ( 'groups' , tables ) ;
@@ -1109,7 +1109,7 @@ $(function () {
1109
1109
} else if ( urlParams . group ) {
1110
1110
// Specific group
1111
1111
$main . text ( 'Loading group...' ) ;
1112
- const path = `benchmark_output/runs/ ${ suite } /groups/ ${ urlParams . group } .json` ;
1112
+ const path = groupJsonUrl ( suite , urlParams . group ) ;
1113
1113
$ . getJSON ( path , { } , ( tables ) => {
1114
1114
$main . empty ( ) ;
1115
1115
console . log ( 'group' , tables ) ;
0 commit comments