equal
deleted
inserted
replaced
2 |
2 |
3 has_and_belongs_to_many :benchmark_batches |
3 has_and_belongs_to_many :benchmark_batches |
4 |
4 |
5 def all_configurations |
5 def all_configurations |
6 benchmark_batches.map(&:benchmark_configuration).uniq |
6 benchmark_batches.map(&:benchmark_configuration).uniq |
7 end |
|
8 |
|
9 def all_benchmark_infos |
|
10 benchmark_batches. |
|
11 flat_map(&:benchmark_results). |
|
12 map(&:benchmark_info). |
|
13 uniq. |
|
14 sort { |a, b| a.name <=> b.name } |
|
15 end |
7 end |
16 |
8 |
17 def benchmark_batches_latest_for(benchmark_configuration) |
9 def benchmark_batches_latest_for(benchmark_configuration) |
18 benchmark_batches. |
10 benchmark_batches. |
19 where(benchmark_configuration: benchmark_configuration) |
11 where(benchmark_configuration: benchmark_configuration) |