()
Run the benchmarks.
Run the benchmarks.
Run the benchmarks .
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])
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 ] )