Skip to content

Commit

Permalink
perf: horizontal viz graph
Browse files Browse the repository at this point in the history
  • Loading branch information
aidenybai committed Nov 24, 2021
1 parent 18fee10 commit afd7d1e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions benchmarks/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const vnode = () => (

<br />

<details open>
<details open={!!logs.length}>
<summary>Graph (Cumulative)</summary>
<canvas id="viz" width="400" height="200"></canvas>
</details>
Expand All @@ -135,9 +135,7 @@ const vnode = () => (
<details open={!!logs.length}>
<summary key="logs">Logs</summary>

<div style={{ paddingTop: '20px' }}>
{logs.map((logGroup) => logGroup.length && <pre>{logGroup.join('\n')}</pre>)}
</div>
<div>{logs.map((logGroup) => logGroup.length && <pre>{logGroup.join('\n')}</pre>)}</div>
</details>

<br />
Expand Down Expand Up @@ -198,6 +196,7 @@ const chart = new Chart(ctx, {
],
},
options: {
indexAxis: 'y',
scales: {
y: {
beginAtZero: true,
Expand Down

0 comments on commit afd7d1e

Please sign in to comment.