Criterium 0.2.1-SNAPSHOT API documentation
Benchmarking library
criterium.core
Criterium measures the computation time of an expression. It is
designed to address some of the pitfalls of benchmarking, and benchmarking on
the JVM in particular.
This includes:
- statistical processing of multiple evaluations
- inclusion of a warm-up period, designed to allow the JIT compiler to
optimise its code
- purging of gc before testing, to isolate timings from GC state prior
to testing
- a final forced GC after testing to estimate impact of cleanup on the
timing results
Usage:
(use 'criterium.core)
(bench (Thread/sleep 1000) :verbose)
(with-progress-reporting (bench (Thread/sleep 1000) :verbose))
(report-result (benchmark (Thread/sleep 1000)) :verbose)
(report-result (quick-bench (Thread/sleep 1000)))
References:
See http://www.ellipticgroup.com/html/benchmarkingArticle.html for a Java
benchmarking library. The accompanying article describes many of the JVM
benchmarking pitfalls.
See http://hackage.haskell.org/package/criterion for a Haskell benchmarking
library that applies many of the same statistical techniques.Public variables and functions:
- *final-gc-problem-threshold*
- *max-gc-attempts*
- *sample-count*
- *target-execution-time*
- *warmup-jit-period*
- StateChanged
- bench
- benchmark
- benchmark*
- bootstrap
- bootstrap-bca
- estimate-execution-count
- execute-expr
- extract-report-options
- final-gc
- force-gc
- heap-used
- jvm-compilation-state
- jvm-jit-name
- memory
- os-details
- outlier-effect
- outlier-significance
- outliers
- quick-bench
- quick-benchmark
- quick-benchmark*
- report
- run-benchmark
- runtime-details
- scale-time
- state-changed?
- state-delta
- system-properties
- time-body
- time-body-with-jvm-state
- timestamp
- timestamp-2
- warmup-for-jit
- with-progress-reporting
criterium.stats
Public variables and functions:
- bca-nonparametric
- bca-nonparametric-eval
- bootstrap-estimate
- bootstrap-sample
- boxplot-outlier-thresholds
- confidence-interval
- cube
- erf
- gaussian-weight
- jacknife
- kernel-density-estimator
- mean
- median
- modal-estimation-constant
- mode-count
- normal-cdf
- normal-quantile
- oversmoothed-bandwidth
- polynomial-value
- quantile
- quartiles
- sample
- sample-uniform
- smoothed-sample
- sqr
- sum
- sum-of-squares
- transpose
- trunc
- uniform-distribution
- variance
criterium.well
Public variables and functions:
criterium.ziggurat
Public variables and functions: