()
Run the benchmarks.
Run the benchmarks.
Run the benchmarks .
def main():
    """Run the benchmarks."""
    print_version()

    iters = ITERATIONS
    p = MIN
    while p <= MAX:
        n = 10**p
        p += 1
        name = ":len="+str(n)
        setup = "import numpy as np;"
        setup += "x = -np.ones([1,"+str(n)+"], dtype='float64');"
        setup += "out = np.zeros([1,"+str(n)+"], dtype='float64');"
        stmt = "z = np.fabs(x, out=out)"
        benchmark(name, setup, stmt, iters)
        iters //= 4

    print_summary(COUNT[0], COUNT[0])
def main ( ) : print_version ( ) iters = ITERATIONS p = MIN while p <= MAX : n = 10 ** p p += 1 name = ":len=" + str ( n ) setup = "import numpy as np;" setup += "x = -np.ones([1," + str ( n ) + "], dtype='float64');" setup += "out = np.zeros([1," + str ( n ) + "], dtype='float64');" stmt = "z = np.fabs(x, out=out)" benchmark ( name , setup , stmt , iters ) iters //= 4 print_summary ( COUNT [ 0 ] , COUNT [ 0 ] )