File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,15 +21,15 @@ def index
2121
2222 def commits
2323 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 |
2525 chart_for ( benchmark_type )
2626 end . compact
2727 end
2828 end
2929
3030 def releases
3131 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 |
3333 benchmark_runs = BenchmarkRun . fetch_release_benchmark_runs (
3434 @benchmark . category , benchmark_result_type
3535 )
@@ -220,4 +220,10 @@ def set_redis_cache_keys
220220 end
221221 end
222222 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
223229end
You can’t perform that action at this time.
0 commit comments