Sha256: 019def352007091f2c19f1539fdf4d65f90f45fd1f9fa6bb14f32496cc597fad

Contents?: true

Size: 596 Bytes

Versions: 2

Compression:

Stored size: 596 Bytes

Contents

<% if object[:benchmarks] %>
<div class="tags">
  <h4>Benchmarks:</h4>
  <ul class="benchmarks">
    <% for bm in object[:benchmarks] %>
      <% key = "#{bm.keys[0]}".length - 1 %>
      <% val = "%.3f" % bm.values[0] %>
      <li><span class="name">×10<sup><%= key %></sup></span> ⇒ <%= val %>
      </li>
    <% end %>
  </ul>
  <% dev = '%.2f' % object[:deviation] %>
  <% pow = object[:power].nil? ? "unknown" : "#{'%.3f' % object[:power]}×10<sup>-6</sup>×O(N)" %>
  <h5>Deviation: <span class="name"><%= dev %>%</span> Power: <span class="name"><%= pow %></span></h5>
</div>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
yard-bench-0.0.3 templates/default/method_details/html/benchmarks.erb
yard-bench-0.0.2 templates/default/method_details/html/benchmarks.erb