Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
*Main Criterion.Main> defaultMain [ bench "tobin 500" $ whnf tobin 500, bench "maptobin 500" $ whnf maptobin 500 ]
warming up
estimating clock resolution...
mean is 8.581281 us (80001 iterations)
found 3565 outliers among 79999 samples (4.5%)
3441 (4.3%) high severe
estimating cost of a clock call...
mean is 795.4828 ns (59 iterations)
benchmarking tobin 500
mean: 1.447452 us, lb 1.319731 us, ub 1.637595 us, ci 0.950
std dev: 787.1083 ns, lb 586.3963 ns, ub 1.031512 us, ci 0.950
found 20 outliers among 100 samples (20.0%)
6 (6.0%) high mild
14 (14.0%) high severe
variance introduced by outliers: 98.948%
variance is severely inflated by outliers
benchmarking maptobin 500
mean: 290.1122 ns, lb 255.6566 ns, ub 337.0472 ns, ci 0.950
std dev: 206.1036 ns, lb 163.6773 ns, ub 250.0515 ns, ci 0.950
found 15 outliers among 100 samples (15.0%)
2 (2.0%) high mild
13 (13.0%) high severe
variance introduced by outliers: 98.970%
variance is severely inflated by outliers
@ocharles
Copy link
Author

ocharles commented Feb 1, 2012

*Main Criterion.Main> defaultMain [ bench "tobin $ 2 ^ 9901" $ whnf tobin $ 2 ^ 9001, bench "maptobin $ 2 ^ 9001" $ whnf maptobin $ 2 ^ 9001 ]
warming up
estimating clock resolution...
mean is 7.886112 us (80001 iterations)
found 1973 outliers among 79999 samples (2.5%)
1871 (2.3%) high severe
estimating cost of a clock call...
mean is 790.2129 ns (43 iterations)

benchmarking tobin $ 2 ^ 9901
mean: 1.428912 us, lb 1.317803 us, ub 1.592855 us, ci 0.950
std dev: 682.3143 ns, lb 510.2759 ns, ub 878.9933 ns, ci 0.950
found 13 outliers among 100 samples (13.0%)
12 (12.0%) high severe
variance introduced by outliers: 98.933%
variance is severely inflated by outliers

benchmarking maptobin $ 2 ^ 9001
mean: 214.3286 ns, lb 200.8120 ns, ub 238.0927 ns, ci 0.950
std dev: 89.30976 ns, lb 57.71576 ns, ub 133.4961 ns, ci 0.950
found 15 outliers among 100 samples (15.0%)
2 (2.0%) high mild
13 (13.0%) high severe
variance introduced by outliers: 98.912%
variance is severely inflated by outliers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment