X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Fintegrated%2Fcompare_perpatch.py;fp=resources%2Ftools%2Fintegrated%2Fcompare_perpatch.py;h=72ae5751d3d58316ba9d9ca6000ce9d6fa9c10c3;hp=dd1549050680eb0c06c61282ae4ea69095ccc375;hb=6b893681d1246f90e55b44762dd85f7d9dab1348;hpb=190462e1f242b59d927eff3e63826fe6343eadbc diff --git a/resources/tools/integrated/compare_perpatch.py b/resources/tools/integrated/compare_perpatch.py index dd15490506..72ae5751d3 100644 --- a/resources/tools/integrated/compare_perpatch.py +++ b/resources/tools/integrated/compare_perpatch.py @@ -39,7 +39,7 @@ def hack(value_list): :rtype: list of float """ tmp = sorted(value_list) - eight = len(tmp) / 8 + eight = len(tmp) // 8 ret = tmp[3*eight:-eight] return tmp # ret @@ -100,7 +100,7 @@ for test_index in range(num_tests): [current_stats]) print(f"Value-ordered MRR values for parent build: {parent_values}") print(f"Value-ordered MRR values for current build: {current_values}") - avg_diff = (current_stats.avg - parent_stats.avg) / parent_stats.avg + avg_diff = (current_stats.avg - parent_stats.avg) // parent_stats.avg print(f"Difference of averages relative to parent: {100 * avg_diff}%") print(f"Jumpavg representation of parent group: {parent_stats}") print(f"Jumpavg representation of current group: {current_stats}")