border-collapse:collapse;
}
-.summary-row-collapsed + .summary-row td {
+.summary-table .summary-row-collapsed + .summary-row td {
border-top: 4px dotted #DDD;
}
</thead>
<tbody>
{{#each groupMembers}}
- <tr>
- <td class="benchmark-name">
- {{this}}
- <a class="graph-link" title="Graphs" href="{{graphLink this}}">
- <span class="glyphicon glyphicon-signal"/>
- </a>
- </td>
+ <tr class="
+ summary-row
+ {{#with (lookup ../../graphSummaries this)}}
+ {{#if improvements}}summary-improvement{{/if}}
+ {{#if regressions}}summary-regression{{/if}}
+ {{/with}}
+ "
+ >
+ <td class="benchmark-name">
+ {{this}}
+ <a class="graph-link" title="Graphs" href="{{graphLink this}}">
+ <span class="glyphicon glyphicon-signal"/>
+ </a>
+ </td>
+ <td class="col-md-2 text-right">
+ {{#with (lookup ../../graphSummaries this)}}
+ <span>
+ {{improvements}}
+ <span class="glyphicon glyphicon-plus text-success"></span>
+ </span>
+ <span>
+ {{regressions}}
+ <span class="glyphicon glyphicon-minus text-warning"></span>
+ </span>
+ {{/with}}
+ </td>
</tr>
{{/each}}
</tbody>
},
graphIndex:
{ regex: /^graphs$/,
- download: ['out/benchNames.json'],
+ download: ['out/benchNames.json', 'out/graph-summaries.json'],
url: function () {return "graphs"},
},
revision:
$.each(jsonFetching[url], function (i,c) {c()});
delete jsonFetching[url];
},
+ error: function (e) {
+ console.log("Failure fetching "+url,e);
+ },
cache: false,
dataType: 'json',
});
results <- rev .: "benchResults"
result <- results .: T.pack bName
parseJSON result
- return $ object [
- T.pack bName .= object
+ return $ T.pack bName .= object
[ T.pack "improvements" .= length [ () | gp <- gps, gpChangeType gp == Improvement ]
, T.pack "regressions" .= length [ () | gp <- gps, gpChangeType gp == Regression]
]
- ]
- let o = object [ "graphSummaries" .= merges g ]
+ let o = object [ "graphSummaries" .= object g ]
BS.putStr $ encode o