Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
automated_benchmarking.py File Reference

Namespaces

namespace  automated_benchmarking
 

Functions

 get_new_open_pr_builds (prev_state=True)
 
 get_latest_hashes ()
 
 get_builds_for_latest_hash ()
 
 clone_and_build (build)
 
 parse_benchmark_output (output)
 
 benchmark_single (executable, level, filename)
 
 benchmark_n (executable, level, filename, n)
 
 benchmark (build, filenames, levels, iterations)
 
 benchmark_dictionary_single (executable, filenames_directory, dictionary_filename, level, iterations)
 
 benchmark_dictionary (build, filenames_directory, dictionary_filename, levels, iterations)
 
 parse_regressions_and_labels (old_cspeed, new_cspeed, old_dspeed, new_dspeed, baseline_build, test_build)
 
 get_regressions (baseline_build, test_build, iterations, filenames, levels)
 
 get_regressions_dictionary (baseline_build, test_build, filenames_directory, dictionary_filename, levels, iterations)
 
 main (filenames, levels, iterations, builds=None, emails=None, continuous=False, frequency=DEFAULT_MAX_API_CALL_FREQUENCY_SEC, dictionary_filename=None)
 

Variables

str GITHUB_API_PR_URL = "https://api.github.com/repos/facebook/zstd/pulls?state=open"
 
str GITHUB_URL_TEMPLATE = "https://github.com/{}/zstd"
 
dict RELEASE_BUILD = {"user": "facebook", "branch": "dev", "hash": None}
 
int DEFAULT_MAX_API_CALL_FREQUENCY_SEC = 60
 
str PREVIOUS_PRS_FILENAME = "prev_prs.pk"
 
float CSPEED_REGRESSION_TOLERANCE = 0.01
 
float DSPEED_REGRESSION_TOLERANCE = 0.01
 
 parser = argparse.ArgumentParser()
 
 help
 
 default
 
 args = parser.parse_args()
 
 filenames = args.directory
 
list levels = [int(l) for l in args.levels.split(",")]
 
 mode = args.mode
 
 iterations = int(args.iterations)
 
 emails = args.emails
 
 frequency = int(args.frequency)
 
 dictionary_filename = args.dict
 
 frequenc
 
list builds = [{"user": None, "branch": "None", "hash": None}]
 
 None
 
 True