Add dataset to legend
This commit is contained in:
parent
4d29b6914e
commit
bb752ba170
@ -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()
|
||||||
|
@ -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 (
|
||||||
|
@ -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' && (
|
||||||
|
Loading…
Reference in New Issue
Block a user