File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -21,15 +21,15 @@ def index
21
21
22
22
def commits
23
23
unless @benchmark . blank?
24
- @charts = @benchmark . benchmark_result_types . map do |benchmark_type |
24
+ @charts = ips_first ( @benchmark . benchmark_result_types ) . map do |benchmark_type |
25
25
chart_for ( benchmark_type )
26
26
end . compact
27
27
end
28
28
end
29
29
30
30
def releases
31
31
unless @benchmark . blank?
32
- @charts = @benchmark . benchmark_result_types . map do |benchmark_result_type |
32
+ @charts = ips_first ( @benchmark . benchmark_result_types ) . map do |benchmark_result_type |
33
33
benchmark_runs = BenchmarkRun . fetch_release_benchmark_runs (
34
34
@benchmark . category , benchmark_result_type
35
35
)
@@ -220,4 +220,10 @@ def set_redis_cache_keys
220
220
end
221
221
end
222
222
end
223
+
224
+ # i/s is a new metric but I want to see it first
225
+ def ips_first ( result_types )
226
+ ips , others = result_types . partition { |t | t . unit == 'i/s' }
227
+ [ *ips , *others ]
228
+ end
223
229
end
You can’t perform that action at this time.
0 commit comments