Added ability to add benchmark results from hardware page
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@ -59,10 +59,27 @@
|
||||
|
||||
<h4>Benchmark results involving this hardware:</h4>
|
||||
|
||||
<ul>
|
||||
<% hardware.results().each do |r| %>
|
||||
<li><%= r.avg_score %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
<table>
|
||||
<thead>
|
||||
<th>Benchmark name</th>
|
||||
<th>Scoring type</th>
|
||||
<th># results</th>
|
||||
<th>Average</th>
|
||||
<th>Minimum</th>
|
||||
<th>Maximum</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% hardware.bench_results().each do |k, r| %>
|
||||
<tr>
|
||||
<td><%= k %></td>
|
||||
<td>N/a</td>
|
||||
<td><%= r.length %></td>
|
||||
<td><%= average_array(r) %></td>
|
||||
<td>N/a</td>
|
||||
<td>N/a</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user