web/app/views/index/_benchmarks_table.html.erb
author Marcel Hlopko <marcel@hlopko.com>
Tue, 28 Oct 2014 16:50:52 +0100
changeset 235 99903c2acca1
parent 222 c98af04e13ce
child 313 fc9e1fcac1b3
permissions -rw-r--r--
Fix n+1 on results page
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
70
e9c892b1c82b nicer tables, useless graph removed
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 65
diff changeset
     1
<div>
e9c892b1c82b nicer tables, useless graph removed
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 65
diff changeset
     2
  <table class="table table-condensed">
e9c892b1c82b nicer tables, useless graph removed
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 65
diff changeset
     3
    <thead>
e9c892b1c82b nicer tables, useless graph removed
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 65
diff changeset
     4
      <tr>
e9c892b1c82b nicer tables, useless graph removed
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 65
diff changeset
     5
        <th>Benchmark</th>
e9c892b1c82b nicer tables, useless graph removed
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 65
diff changeset
     6
e9c892b1c82b nicer tables, useless graph removed
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 65
diff changeset
     7
        <th>Min [ms]</th>
128
b0083f806b57 Added operating system translations...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 70
diff changeset
     8
        <th style="color: gray;">Avg [ms]</th>
b0083f806b57 Added operating system translations...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 70
diff changeset
     9
        <th style="color: gray;">Max [ms]</th>
70
e9c892b1c82b nicer tables, useless graph removed
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 65
diff changeset
    10
      </tr>
e9c892b1c82b nicer tables, useless graph removed
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 65
diff changeset
    11
    </thead>
e9c892b1c82b nicer tables, useless graph removed
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 65
diff changeset
    12
    <tbody>
235
99903c2acca1 Fix n+1 on results page
Marcel Hlopko <marcel@hlopko.com>
parents: 222
diff changeset
    13
      <% batch.benchmark_results.each do |result| %>
70
e9c892b1c82b nicer tables, useless graph removed
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 65
diff changeset
    14
        <tr>
e9c892b1c82b nicer tables, useless graph removed
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 65
diff changeset
    15
          <th><%= result.benchmark_info.name %></th>
e9c892b1c82b nicer tables, useless graph removed
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 65
diff changeset
    16
          <td><%= result.min_duration %></td>
128
b0083f806b57 Added operating system translations...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 70
diff changeset
    17
          <td style="color: gray;"><%= result.average_duration %></td>
b0083f806b57 Added operating system translations...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 70
diff changeset
    18
          <td style="color: gray;"><%= result.max_duration %></td>
70
e9c892b1c82b nicer tables, useless graph removed
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 65
diff changeset
    19
        </tr>
e9c892b1c82b nicer tables, useless graph removed
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 65
diff changeset
    20
      <% end %>
e9c892b1c82b nicer tables, useless graph removed
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 65
diff changeset
    21
    </tbody>
e9c892b1c82b nicer tables, useless graph removed
Marcel Hlopko <marcel.hlopko@gmail.com>
parents: 65
diff changeset
    22
  </table>
63
33ab7e8188d0 fake graph for root page
Marcel Hlopko <marcel.hlopko@gmail.com>
parents:
diff changeset
    23
</div>