def checkpoint(names): """ Creates a checkpoint for the current targets """ benchmarks = load_benchmarks() if not any(names): names = 'all' for benchmark_class in benchmarks: if names == 'all' or benchmark_class.name in names: bmark = benchmark_class() bmark.checkpoint() say('Done.')
def benchmark(names, check_diffs): """ Performs benchmarks to the specified program """ benchmarks = load_benchmarks() if not any(names): names = 'all' for benchmark_class in benchmarks: if names == 'all' or benchmark_class.name in names: bmark = benchmark_class() bmark.full(check_diffs=check_diffs) say('Done.')