Skip to content

Commit

Permalink
Can now pick a predefined suite or provide one yourself
Browse files Browse the repository at this point in the history
  • Loading branch information
JosephBond committed Oct 19, 2023
1 parent b1c3215 commit 91dd1fd
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions plot_bench.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import sys
import argparse


Expand All @@ -27,10 +26,14 @@ def parse(test_names, column_order):

plt.show()

def decompose_list(input_str):
inner = input_str.split(", ")
return inner

parser = argparse.ArgumentParser()
parser.add_argument("-s", "--Suite", help = "Premade testsuite")
parser.add_argument("-t", "--Tests", help = "Specify list of tests")
parser.add_argument("-b", "--Benches", help = "Specify list of benchmarks to show")
parser.add_argument("-t", "--Tests", type=decompose_list, help = "Specify list of tests")
parser.add_argument("-b", "--Benches",type=decompose_list, help = "Specify list of benchmarks to show")

args = parser.parse_args()

Expand All @@ -52,3 +55,5 @@ def parse(test_names, column_order):
bench_names = ['Trace-Eval','Trace-Bwd', 'Trace-Fwd', 'Graph-Eval', 'Graph-Bwd', 'Graph-Fwd']

parse(test_cases, bench_names)
elif args.Tests and args.Benches:
parse(args.Tests, args.Benches)

0 comments on commit 91dd1fd

Please sign in to comment.