main
Parses command-line arguments to execute specific benchmarking functions ('apply', 'work', or 'both') for a specified number of iterations, defaulting to 20,000 if not provided.
def main(
argv: list = sys.argv
) - > object
Executes the specified benchmarking suite for a given number of iterations based on command-line arguments.
Parameters
| Name | Type | Description |
|---|---|---|
| argv | list = sys.argv | A list of command-line arguments where the first index is the script name, the second is the benchmark mode (apply, work, or both), and the optional third is the iteration count. |
Returns
| Type | Description |
|---|---|
object | The results of the executed benchmark function (bench_apply, bench_work, or bench_both). |