Added functionality to use pre-existing benchmark results if they exist.

This commit is contained in:
Paul Gauthier 2023-06-27 14:27:07 -07:00
parent 70050ca004
commit 9556313819

View file

@ -63,7 +63,10 @@ def main(
if len(dirname.parts) == 1:
priors = list(BENCHMARK_DNAME.glob(f"*--{dirname}"))
if len(priors):
if len(priors) == 1 and stats_only:
dirname = priors[0].name
print(f'Using pre-existing {dirname}')
elif len(priors):
if not make_new:
print(f"Prior runs of {dirname} exist, use --new or name one explicitly")
print()