gcpy.benchmark.modules.benchmark_scrape_gcclassic_timers
Scrapes GEOS-Chem Classic benchmark timing information from one or more JSON or text files.
Functions
|
Prints the GEOS-Chem timer information to a table. |
|
Creates a table of timing information for GEOS-Chem Classic benchmark simulations given one or more JSON and/or text files as input. |
|
Prints timing info for a single timer to a log file. |
|
Determines whether we should call a function to parse the given input file(s) as JSON or plain text. |
|
Parses a GEOS-Chem JSON file with timing information and returns a dictionary with the results. |
|
Parses the GEOS-Chem Classic log file (plain text) with timing information and returns a dictionary with the results. |
|
Parses the GEOS-Chem Classic timing information in JSON format and returns a dictionary with the results. |
|
Sums the time in seconds for each GEOS-Chem timer. |
- gcpy.benchmark.modules.benchmark_scrape_gcclassic_timers.read_gcclassic(input_files)[source]
Determines whether we should call a function to parse the given input file(s) as JSON or plain text.
- gcpy.benchmark.modules.benchmark_scrape_gcclassic_timers.read_timing_data(input_files, reader)[source]
Parses the GEOS-Chem Classic timing information in JSON format and returns a dictionary with the results.
- gcpy.benchmark.modules.benchmark_scrape_gcclassic_timers.read_one_json_file(json_file)[source]
Parses a GEOS-Chem JSON file with timing information and returns a dictionary with the results.
- gcpy.benchmark.modules.benchmark_scrape_gcclassic_timers.read_one_text_file(text_file)[source]
Parses the GEOS-Chem Classic log file (plain text) with timing information and returns a dictionary with the results.
- gcpy.benchmark.modules.benchmark_scrape_gcclassic_timers.sum_timers(timers)[source]
Sums the time in seconds for each GEOS-Chem timer. Input may be a single dict with timing information or a list of dicts.
- gcpy.benchmark.modules.benchmark_scrape_gcclassic_timers.print_timer(key, ref, dev, ofile)[source]
Prints timing info for a single timer to a log file.
- gcpy.benchmark.modules.benchmark_scrape_gcclassic_timers.display_timers(ref, ref_label, dev, dev_label, table_file)[source]
Prints the GEOS-Chem timer information to a table.
- gcpy.benchmark.modules.benchmark_scrape_gcclassic_timers.make_benchmark_gcclassic_timing_table(ref_files, ref_label, dev_files, dev_label, dst='./benchmark', overwrite=False)[source]
Creates a table of timing information for GEOS-Chem Classic benchmark simulations given one or more JSON and/or text files as input.
- Parameters:
ref_files (
strorlist) – File(s) with timing info from the “Ref” model.ref_label (
str) – Version string for the “Ref” model.dev_files (
strorlist) – File(s) with timing info from the “Dev” model.dev_label (
str) – Version string for the “Dev” model.dst (
str, optional) – Directory where output will be written.overwrite (
bool, optional) – Overwrite existing files? Default: False.