Created
April 26, 2019 13:47
-
-
Save slipset/cee1b6281028ea13289d0b068b0dc154 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foo.core=> (def few-numbers (range 2)) | |
#'foo.core/few-numbers | |
foo.core=> few-numbers | |
(0 1) | |
foo.core=> (def many-numbers (range 100)) | |
#'foo.core/many-numbers | |
foo.core=> many-numbers | |
(0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99) | |
foo.core=> (bench (apply + few-numbers)) | |
Evaluation count : 543551760 in 60 samples of 9059196 calls. | |
Execution time mean : 106.193023 ns | |
Execution time std-deviation : 6.297424 ns | |
Execution time lower quantile : 101.741652 ns ( 2.5%) | |
Execution time upper quantile : 121.860399 ns (97.5%) | |
Overhead used : 8.870254 ns | |
Found 5 outliers in 60 samples (8.3333 %) | |
low-severe 2 (3.3333 %) | |
low-mild 3 (5.0000 %) | |
Variance from outliers : 43.5005 % Variance is moderately inflated by outliers | |
nil | |
foo.core=> (bench (reduce + few-numbers)) | |
Evaluation count : 1113737880 in 60 samples of 18562298 calls. | |
Execution time mean : 46.252559 ns | |
Execution time std-deviation : 1.521999 ns | |
Execution time lower quantile : 44.958514 ns ( 2.5%) | |
Execution time upper quantile : 50.834336 ns (97.5%) | |
Overhead used : 8.870254 ns | |
Found 4 outliers in 60 samples (6.6667 %) | |
low-severe 2 (3.3333 %) | |
low-mild 2 (3.3333 %) | |
Variance from outliers : 19.0380 % Variance is moderately inflated by outliers | |
nil | |
foo.core=> (bench (apply + many-numbers)) | |
Evaluation count : 21692220 in 60 samples of 361537 calls. | |
Execution time mean : 2.752044 µs | |
Execution time std-deviation : 23.815814 ns | |
Execution time lower quantile : 2.710895 µs ( 2.5%) | |
Execution time upper quantile : 2.798720 µs (97.5%) | |
Overhead used : 8.870254 ns | |
Found 1 outliers in 60 samples (1.6667 %) | |
low-severe 1 (1.6667 %) | |
Variance from outliers : 1.6389 % Variance is slightly inflated by outliers | |
nil | |
foo.core=> (bench (reduce + many-numbers)) | |
Evaluation count : 23690400 in 60 samples of 394840 calls. | |
Execution time mean : 2.538549 µs | |
Execution time std-deviation : 19.818034 ns | |
Execution time lower quantile : 2.512037 µs ( 2.5%) | |
Execution time upper quantile : 2.587918 µs (97.5%) | |
Overhead used : 8.870254 ns | |
Found 3 outliers in 60 samples (5.0000 %) | |
low-severe 3 (5.0000 %) | |
Variance from outliers : 1.6389 % Variance is slightly inflated by outliers | |
nil |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment