parameters: ()
docstring: Run the benchmarks.
docstring_summary: Run the benchmarks.
docstring_tokens: Run the benchmarks .
function: 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])
function_tokens: 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 ] )