Benchpress¶
-
benchpress.benchpress.
command
(cmd, label, env={})[source]¶ Create a Benchpress command, which define a single benchmark execution
This is a help function to create a Benchpress command, which is a Python dict of the parameters given.
Parameters: Returns: command – The created Benchpress command
Return type:
-
benchpress.benchpress.
create_suite
(cmd_list, output_path=None)[source]¶ Create a suite file (JSON) based on a list of commands
Parameters: - cmd_list (list of dict) – List of commands that makes up this benchmark suite.
- output_path (str) – Path to the output file when the –output argument is unset. If None, a path to a temporary file is used.
See also
command()
- Help function to create a new command