()
Run the benchmark and print benchmark results.
Run the benchmark and print benchmark results.
Run the benchmark and print benchmark results .
def benchmark():
    """Run the benchmark and print benchmark results."""
    setup = "from scipy.special import polygamma; from random import random;"
    stmt = "y = polygamma(int(round(40.0*random())), 100.0*random() + 0.1)"

    t = timeit.Timer(stmt, setup=setup)

    print_version()

    for i in range(REPEATS):
        print("# python::scipy::" + NAME)
        elapsed = t.timeit(number=ITERATIONS)
        print_results(elapsed)
        print("ok " + str(i+1) + " benchmark finished")

    print_summary(REPEATS, REPEATS)
def benchmark ( ) : setup = "from scipy.special import polygamma; from random import random;" stmt = "y = polygamma(int(round(40.0*random())), 100.0*random() + 0.1)" t = timeit . Timer ( stmt , setup = setup ) print_version ( ) for i in range ( REPEATS ) : print ( "# python::scipy::" + NAME ) elapsed = t . timeit ( number = ITERATIONS ) print_results ( elapsed ) print ( "ok " + str ( i + 1 ) + " benchmark finished" ) print_summary ( REPEATS , REPEATS )