parameters: ()
docstring: Run the benchmarks.
docstring_summary: Run the benchmarks.
docstring_tokens: Run the benchmarks .
function: def main():
      """Run the benchmarks."""
      name = "cauchy:entropy"
      setup = "from scipy.stats import cauchy; from random import random; rv = cauchy(10.0, 6.0);"
      stmt = "y = rv.entropy()"
      iterations = 1000
      benchmark(name, setup, stmt, iterations)
  
      name = "cauchy:median"
      setup = "from scipy.stats import cauchy; from random import random; rv = cauchy(10.0, 6.0);"
      stmt = "y = rv.median()"
      iterations = 1000
      benchmark(name, setup, stmt, iterations)
  
      name = "cauchy:cdf"
      setup = "from scipy.stats import cauchy; from random import random; rv = cauchy(10.0, 6.0);"
      stmt = "y = rv.cdf(random())"
      iterations = 1000
      benchmark(name, setup, stmt, iterations)
  
      name = "cauchy:logcdf"
      setup = "from scipy.stats import cauchy; from random import random; rv = cauchy(10.0, 6.0);"
      stmt = "y = rv.logcdf(random())"
      iterations = 1000
      benchmark(name, setup, stmt, iterations)
  
      name = "cauchy:logpdf"
      setup = "from scipy.stats import cauchy; from random import random; rv = cauchy(10.0, 6.0);"
      stmt = "y = rv.logpdf(random())"
      iterations = 1000
      benchmark(name, setup, stmt, iterations)
  
      name = "cauchy:pdf"
      setup = "from scipy.stats import cauchy; from random import random; rv = cauchy(10.0, 6.0);"
      stmt = "y = rv.pdf(random())"
      iterations = 1000
      benchmark(name, setup, stmt, iterations)
  
      name = "cauchy:quantile"
      setup = "from scipy.stats import cauchy; from random import random; rv = cauchy(10.0, 6.0);"
      stmt = "y = rv.ppf(random())"
      iterations = 1000
      benchmark(name, setup, stmt, iterations)
  
      print_summary(COUNT[0], COUNT[0])
function_tokens: def main ( ) : name = "cauchy:entropy" setup = "from scipy.stats import cauchy; from random import random; rv = cauchy(10.0, 6.0);" stmt = "y = rv.entropy()" iterations = 1000 benchmark ( name , setup , stmt , iterations ) name = "cauchy:median" setup = "from scipy.stats import cauchy; from random import random; rv = cauchy(10.0, 6.0);" stmt = "y = rv.median()" iterations = 1000 benchmark ( name , setup , stmt , iterations ) name = "cauchy:cdf" setup = "from scipy.stats import cauchy; from random import random; rv = cauchy(10.0, 6.0);" stmt = "y = rv.cdf(random())" iterations = 1000 benchmark ( name , setup , stmt , iterations ) name = "cauchy:logcdf" setup = "from scipy.stats import cauchy; from random import random; rv = cauchy(10.0, 6.0);" stmt = "y = rv.logcdf(random())" iterations = 1000 benchmark ( name , setup , stmt , iterations ) name = "cauchy:logpdf" setup = "from scipy.stats import cauchy; from random import random; rv = cauchy(10.0, 6.0);" stmt = "y = rv.logpdf(random())" iterations = 1000 benchmark ( name , setup , stmt , iterations ) name = "cauchy:pdf" setup = "from scipy.stats import cauchy; from random import random; rv = cauchy(10.0, 6.0);" stmt = "y = rv.pdf(random())" iterations = 1000 benchmark ( name , setup , stmt , iterations ) name = "cauchy:quantile" setup = "from scipy.stats import cauchy; from random import random; rv = cauchy(10.0, 6.0);" stmt = "y = rv.ppf(random())" iterations = 1000 benchmark ( name , setup , stmt , iterations ) print_summary ( COUNT [ 0 ] , COUNT [ 0 ] )