Add dataset to legend

This commit is contained in:
Alfred Melch 2019-08-06 18:00:31 +02:00
parent 4d29b6914e
commit bb752ba170
3 changed files with 3 additions and 1 deletions

View File

@ -33,6 +33,7 @@ export class BenchmarkSuite {
} }
async run() { async run() {
this.onChange()
while (this.state === 'running' && this.cases.hasNext()) { while (this.state === 'running' && this.cases.hasNext()) {
await this.measureNext() await this.measureNext()
this.onChange() this.onChange()

View File

@ -21,6 +21,7 @@ export class Chart extends React.Component {
})) }))
datasets.push({ ...datasetTemplates.numberOfNodes, data: nodeData }) datasets.push({ ...datasetTemplates.numberOfNodes, data: nodeData })
let data = { datasets, labels } let data = { datasets, labels }
addLegendEntry(data, `Dataset: ${datasetNames[formState.dataset]}`)
addLegendEntry(data, `High quality mode: ${formState.highQual}`) addLegendEntry(data, `High quality mode: ${formState.highQual}`)
addLegendEntry(data, `Platform: ${platform.description}`) addLegendEntry(data, `Platform: ${platform.description}`)
return ( return (

View File

@ -151,7 +151,7 @@ export class Form extends Component {
BenchmarkJS (slow - statistically significant) BenchmarkJS (slow - statistically significant)
</option> </option>
<option value="opsPerTime"> <option value="opsPerTime">
OpsPerTime (slow - low significance) OpsPerTime (fixed time - low significance)
</option> </option>
</select> </select>
{this.state.benchMethod === 'iteration' && ( {this.state.benchMethod === 'iteration' && (