Skip to main content

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

NameTypeDescription
argvlist = sys.argvA 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

TypeDescription
objectThe results of the executed benchmark function (bench_apply, bench_work, or bench_both).