gipeda 0.2 → 0.2.0.1
raw patch · 4 files changed
+15/−9 lines, 4 filesdep ~aeson
Dependency ranges changed: aeson
Files
- README.md +1/−1
- gipeda.cabal +2/−2
- site/js/gipeda.js +6/−4
- src/ReportTypes.hs +6/−2
README.md view
@@ -35,7 +35,7 @@ * Install a Haskell compiler, including the `cabal` tool. * Install a few packages - apt-get install git unzip libfile-slurp-perl libipc-run-perl libicu-dev+ apt-get install git unzip libssl-dev libfile-slurp-perl libipc-run-perl libicu-dev * Install the dependencies:
gipeda.cabal view
@@ -1,5 +1,5 @@ name: gipeda-version: 0.2+version: 0.2.0.1 category: Development synopsis: Git Performance Dashboard description:@@ -77,7 +77,7 @@ vector >= 0.10 && <0.12, cassava >= 0.4 && <0.5, yaml >= 0.8 && <0.9,- aeson >= 0.7 && <0.11,+ aeson >= 0.7 && <0.12, scientific >= 0.3 && <0.4, gitlib >= 3.1 && <3.2, gitlib-libgit2,
site/js/gipeda.js view
@@ -361,12 +361,14 @@ res.change = "- " + (-percS) + "%"; } - if (Math.abs(perc) >= s.threshold) {- if (perc >= 0) {+ var th_up = s.threshold;+ var th_down = (1-(1/(1+s.threshold/100)))*100;++ if (perc >= 0 && perc > th_up) { res.changeType = "Improvement";- } else {+ }+ if (perc < 0 && -perc > th_down) { res.changeType = "Regression";- } } } } else if (s.type == "small integral") {
src/ReportTypes.hs view
@@ -165,12 +165,16 @@ change | abs perc < 0.01 = "=" | perc >= 0 = printf "+ %.2f%%" perc | perc < 0 = printf "- %.2f%%" (-perc)- typ | abs perc < th = Boring+ typ | perc >= 0, perc < th_up = Boring+ | perc < 0, -perc < th_down = Boring | perc >= 0 = Improvement | perc < 0 = Regression perc = 100 * ((f2 - f1) / f1)- th = S.threshold s+ th_up = S.threshold s+ -- Adjusted threshold, to make sure that the inverse change is flagged+ -- equivalently+ th_down = (1-(1/(1+S.threshold s/100)))*100 toFloat :: BenchValue -> Double toFloat (I i) = fromIntegral i