parameters: ()
docstring: Run the benchmark and print benchmark results.
docstring_summary: Run the benchmark and print benchmark results.
docstring_tokens: Run the benchmark and print benchmark results .
function: 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)
function_tokens: 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 )