Commit d50df48
committed
Add toggle to sort entries in html generated report
In some cases, specially in the bar graph summary view when many
benchmarks are present, it can be useful to sort benchmarks based on
their results. This commit adds a checkbox labeled `sorted` to the top
bar --where the plot chooser is-- that enables sorting the benchmarks by
order.
Note that sorting the benchmarks changes the color and checkmarks of the
traces. It might be better to preserve the initial ones, but I was too
lazy to do so--I believe that we would need to manually asign colors and
markers instead of relying on plotly auto-asigning them.
Here is an example of the results:
https://sinusoid.es/misc/nonius/sorting-example8.html1 parent 668c595 commit d50df48
2 files changed
Lines changed: 65 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
| |||
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
95 | 108 | | |
96 | 109 | | |
97 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
39 | 43 | | |
40 | 44 | | |
41 | 45 | | |
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
45 | 81 | | |
46 | | - | |
| 82 | + | |
| 83 | + | |
47 | 84 | | |
48 | 85 | | |
49 | | - | |
| 86 | + | |
50 | 87 | | |
51 | | - | |
| 88 | + | |
52 | 89 | | |
53 | 90 | | |
54 | | - | |
| 91 | + | |
55 | 92 | | |
56 | 93 | | |
57 | 94 | | |
58 | | - | |
| 95 | + | |
59 | 96 | | |
60 | | - | |
| 97 | + | |
| 98 | + | |
61 | 99 | | |
62 | 100 | | |
63 | 101 | | |
| |||
81 | 119 | | |
82 | 120 | | |
83 | 121 | | |
84 | | - | |
85 | | - | |
| 122 | + | |
| 123 | + | |
86 | 124 | | |
87 | | - | |
| 125 | + | |
88 | 126 | | |
89 | 127 | | |
90 | 128 | | |
| |||
114 | 152 | | |
115 | 153 | | |
116 | 154 | | |
117 | | - | |
118 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
119 | 158 | | |
120 | 159 | | |
121 | 160 | | |
122 | | - | |
| 161 | + | |
123 | 162 | | |
124 | 163 | | |
125 | 164 | | |
| |||
0 commit comments