Skip to content

Commit 1514b20

Browse files
committed
print_table_of_benchmarks
Change-Id: I04cd53462b7190e071cd6ec680aaec37e08e7064
1 parent 8f139ec commit 1514b20

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

recirq/algorithmic_benchmark_library.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,9 @@ def get_all_algo_configs() -> List[Tuple[AlgorithmicBenchmark, BenchmarkConfig]]
8181
return ret
8282

8383

84-
def main():
84+
def print_table_of_benchmarks():
85+
"""Print the AlgorithmicBenchmarks in a tabular form."""
8586
df = pd.DataFrame([algo.as_strings() for algo in BENCHMARKS]).set_index('executable_family')
8687
pd.set_option('display.width', None)
8788
pd.set_option('display.max_colwidth', None)
8889
print(df.transpose())
89-
90-
91-
if __name__ == '__main__':
92-
main()

0 commit comments

Comments
 (0)