Commit 3d1490af authored by Kenneth Graunke's avatar Kenneth Graunke

report.py: Report a list of unchanged programs.

parent d715da67
......@@ -56,6 +56,7 @@ def main():
helped = []
hurt = []
unchanged = []
lost = []
gained = []
for p in args.before:
......@@ -73,11 +74,13 @@ def main():
affected_before += before_count
affected_after += after_count
result = get_result_string(namestr, before_count, after_count)
if after_count > before_count:
hurt.append(p)
else:
helped.append(result)
result = get_result_string(namestr, before_count, after_count)
if after_count > before_count:
hurt.append(p)
elif after_count == before_count:
unchanged.append(result)
else:
helped.append(result)
else:
lost.append(namestr)
......@@ -91,6 +94,12 @@ def main():
if len(helped) > 0:
print("")
unchanged.sort()
for r in unchanged:
print("unchanged: " + r)
if len(unchanged) > 0:
print("")
hurt.sort(
key=lambda k: float(args.after[k] - args.before[k]) / args.before[k])
for p in hurt:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment