equal
deleted
inserted
replaced
12 map(&:benchmark_info). |
12 map(&:benchmark_info). |
13 uniq. |
13 uniq. |
14 sort { |a, b| a.name <=> b.name } |
14 sort { |a, b| a.name <=> b.name } |
15 end |
15 end |
16 |
16 |
|
17 def benchmark_batches_latest_for(benchmark_configuration) |
|
18 benchmark_batches. |
|
19 where(benchmark_configuration: benchmark_configuration) |
|
20 end |
|
21 |
|
22 |
17 def latest_results_for(benchmark_info, benchmark_configuration) |
23 def latest_results_for(benchmark_info, benchmark_configuration) |
18 benchmark_batches. |
24 benchmark_batches. |
19 joins(:benchmark_results). |
25 joins(:benchmark_results). |
20 where(benchmark_configuration: benchmark_configuration, |
26 where(benchmark_configuration: benchmark_configuration, |
21 benchmark_results: { benchmark_info: benchmark_info }). |
27 benchmark_results: { benchmark_info: benchmark_info }). |