Skip to content

Commit

Permalink
Add overall comparison into code_size_comparison.py
Browse files Browse the repository at this point in the history
  • Loading branch information
voltjia committed Jan 13, 2025
1 parent 69b626d commit 13dc6be
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion code_size_comparison.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,15 @@
print(
pd.DataFrame(
{
"Kernel": kernels,
"Kernel": kernels + ("Overall",),
"Relative Code Size Change (%)": [
f"{ninetoothed_lines / triton_lines * 100:.2f}%"
for ninetoothed_lines, triton_lines in zip(
lines_of_code["NineToothed"], lines_of_code["Triton"]
)
]
+ [
f"{sum(lines_of_code['NineToothed']) / sum(lines_of_code['Triton']) * 100:.2f}%"
],
}
)
Expand Down

0 comments on commit 13dc6be

Please sign in to comment.