Skip to content

Instantly share code, notes, and snippets.

@chpill
Created March 26, 2017 00:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chpill/2b253352a067116aecb78b54ee6c262a to your computer and use it in GitHub Desktop.
Save chpill/2b253352a067116aecb78b54ee6c262a to your computer and use it in GitHub Desktop.
(original chunks)
=> {0 3330, 1 3330, 2 3330} ;; as expected!
;; Note that the standard deviation is huge here
(criterium/quick-bench (original chunks))
"
Evaluation count : 294 in 6 samples of 49 calls.
Execution time mean : 10.778696 ms
Execution time std-deviation : 8.818884 ms
Execution time lower quantile : 1.680341 ms ( 2.5%)
Execution time upper quantile : 22.618172 ms (97.5%)
Overhead used : 61.555210 ns
"
;; Let's do a more thorough bench
(criterium/bench (original chunks))
"
Evaluation count : 46800 in 60 samples of 780 calls.
Execution time mean : 1.314476 ms
Execution time std-deviation : 34.540276 µs
Execution time lower quantile : 1.275610 ms ( 2.5%)
Execution time upper quantile : 1.405845 ms (97.5%)
Overhead used : 1.976022 ns
Found 3 outliers in 60 samples (5.0000 %)
low-severe 1 (1.6667 %)
low-mild 2 (3.3333 %)
Variance from outliers : 14.1514 % Variance is moderately inflated by outliers
"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment