-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathview.handlebars
56 lines (52 loc) · 1.42 KB
/
view.handlebars
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<div id="wrapper">
<h1>List benchmarks</h1>
<p>
The tables shows the performance of the libraries in relation to
the fastest. The numbers denote how many times slower than the
fastest the library is. The graphs are interactive. Controls are
revealed by hovering.
</p>
<p>
Lower is better.
</p>
<p>
<a href="https://github.com/funkia/list">GitHub repository</a> -
<a href="https://github.com/funkia/list/tree/master/test/bench">How to run the benchmarks</a>
</p>
<div>
{{#each benchmarks}}
<div class="benchmark">
<h2 class="benchmark-name" id="{{name}}">{{name}}</h2>
{{#if description}}
<p class="benchmark-description">{{description}}</p>
{{/if}}
<div class="benchmark-wrapper">
<div id="{{name}}-graph"></div>
<table>
<tr>
<th>n</th>
{{#each input}}
<th>{{this}}</th>
{{/each}}
</tr>
{{#each tableRows}}
<tr>
<td>{{name}}</td>
{{#each data}}
<td style="background-color: {{color}}">
{{n}}x
{{#if fastest}}
<div class="fastest">fastest</div>
{{else}}
<div class="slower">slower</div>
{{/if}}
</td>
{{/each}}
</tr>
{{/each}}
</table>
</div>
</div>
{{/each}}
</div>
</div>