utility method to create ratios of two implementation
(cls, results, num, div, name)
| 58 | |
| 59 | @classmethod |
| 60 | def _divide_results(cls, results, num, div, name): |
| 61 | "utility method to create ratios of two implementation" |
| 62 | if div in results and num in results: |
| 63 | num_dict = results[num] |
| 64 | div_dict = results[div] |
| 65 | assert num_dict.keys() == div_dict.keys() |
| 66 | results[name] = {m: num_dict[m] / div_dict[m] for m in div_dict} |
| 67 | |
| 68 | @classmethod |
| 69 | def update_results(cls, results): |
no test coverage detected