perf: [diff-tool] increase column width and remove spaces in column names
@@ -35,7 +35,7 @@ import sys
# Number of parameters (ARCH, CIPHER_MODE, DIR, HASH_ALG, KEY_SIZE)
PAR_NUM = 5
-COL_WIDTH = 14
+COL_WIDTH = 19
CYCLE_COST = False
PACKET_SIZE = 0
SLOPE = False
@@ -153,16 +153,16 @@ class VarList(list):
#commandline flags and prints the appropriate values
if CYCLE_COST:
headings = ["NO", "ARCH", "CIPHER", "DIR", "HASH",
- "KEYSZ", "CYCLE COST A", "CYCLE COST B"]
+ "KEYSZ", "CYCLE_COST_A", "CYCLE_COST_B"]
print("Buffer size: {} bytes".format(PACKET_SIZE))
elif THROUGHPUT:
headings = ["NO", "ARCH", "CIPHER", "DIR", "HASH",
- "KEYSZ", "THROUGHPUT A", "THROUGHPUT B"]
+ "KEYSZ", "THROUGHPUT_A", "THROUGHPUT_B"]
print("Buffer size: {} bytes".format(PACKET_SIZE))
print("Clock speed: {} MHz\nThroughput unit: Mbps".format(CLOCK_SPEED))
else:
headings = ["NO", "ARCH", "CIPHER", "DIR", "HASH",
- "KEYSZ", "SLOPE A", "INTERCEPT A", "SLOPE B", "INTERCEPT B"]
+ "KEYSZ", "SLOPE_A", "INTERCEPT_A", "SLOPE_B", "INTERCEPT_B"]
print("".join(j.ljust(COL_WIDTH) for j in headings))
@@ -206,16 +206,16 @@ class VarList(list):
"""
if CYCLE_COST:
headings = ["NO", "ARCH", "CIPHER", "DIR", "HASH",
- "KEYSZ", "CYCLE COST A"]
+ "KEYSZ", "CYCLE_COST_A"]
print("Buffer size: {} bytes".format(PACKET_SIZE))
elif THROUGHPUT:
headings = ["NO", "ARCH", "CIPHER", "DIR", "HASH",
- "KEYSZ", "THROUGHPUT A"]
+ "KEYSZ", "THROUGHPUT_A"]
print("Buffer size: {} bytes".format(PACKET_SIZE))
print("Clock speed: {} MHz\nThroughput unit: Mbps".format(CLOCK_SPEED))
else:
headings = ["NO", "ARCH", "CIPHER", "DIR", "HASH",
- "KEYSZ", "SLOPE A", "INTERCEPT A"]
+ "KEYSZ", "SLOPE_A", "INTERCEPT_A"]
print("".join(j.ljust(COL_WIDTH) for j in headings))
for i, obj in enumerate(self):
number = i+1
