Félix Marty
commited on
Commit
·
45a4742
1
Parent(s):
5454ce3
remove toFixed that mess up with the actual data
Browse files- dana/src/analyse.js +5 -5
- dana/src/server.js +0 -1
dana/src/analyse.js
CHANGED
@@ -241,7 +241,7 @@ function benchmarkAnalyse(serie, sortedBuildIds, indexStart, indexStop) {
|
|
241 |
start: startIndex,
|
242 |
end: cIndex - 1,
|
243 |
length: cIndex - startIndex,
|
244 |
-
average: average
|
245 |
});
|
246 |
sum = value;
|
247 |
average = value;
|
@@ -271,7 +271,7 @@ function benchmarkAnalyse(serie, sortedBuildIds, indexStart, indexStop) {
|
|
271 |
start: startIndex,
|
272 |
end: cIndex - 1,
|
273 |
length: cIndex - startIndex,
|
274 |
-
average: average
|
275 |
});
|
276 |
|
277 |
function newAverageIsValid(indexStart) {
|
@@ -344,8 +344,8 @@ function benchmarkAnalyse(serie, sortedBuildIds, indexStart, indexStop) {
|
|
344 |
} else {
|
345 |
let tdiff = r.average - theRegressions[first].average;
|
346 |
let tratio = tdiff * 100 / theRegressions[first].average;
|
347 |
-
r.ratio = tratio
|
348 |
-
r.diff = tdiff
|
349 |
|
350 |
// if tratio is in range, ok
|
351 |
let outOfRange = false;
|
@@ -613,7 +613,7 @@ function benchmarkCompare(cp, serie, cpSerie) {
|
|
613 |
|
614 |
return ({
|
615 |
status: status,
|
616 |
-
diff: diff
|
617 |
myValue: value,
|
618 |
compareValue: cpValue,
|
619 |
});
|
|
|
241 |
start: startIndex,
|
242 |
end: cIndex - 1,
|
243 |
length: cIndex - startIndex,
|
244 |
+
average: average,
|
245 |
});
|
246 |
sum = value;
|
247 |
average = value;
|
|
|
271 |
start: startIndex,
|
272 |
end: cIndex - 1,
|
273 |
length: cIndex - startIndex,
|
274 |
+
average: average,
|
275 |
});
|
276 |
|
277 |
function newAverageIsValid(indexStart) {
|
|
|
344 |
} else {
|
345 |
let tdiff = r.average - theRegressions[first].average;
|
346 |
let tratio = tdiff * 100 / theRegressions[first].average;
|
347 |
+
r.ratio = tratio;
|
348 |
+
r.diff = tdiff;
|
349 |
|
350 |
// if tratio is in range, ok
|
351 |
let outOfRange = false;
|
|
|
613 |
|
614 |
return ({
|
615 |
status: status,
|
616 |
+
diff: diff,
|
617 |
myValue: value,
|
618 |
compareValue: cpValue,
|
619 |
});
|
dana/src/server.js
CHANGED
@@ -634,7 +634,6 @@ function apiAddSample(apiData, hdl) {
|
|
634 |
//
|
635 |
// Serie analysis for benchmark
|
636 |
//
|
637 |
-
sample.value = sample.value.toFixed(2) * 1;
|
638 |
|
639 |
if (serie.samples === undefined) serie.samples = {};
|
640 |
serie.samples[sample.buildId] = sample.value;
|
|
|
634 |
//
|
635 |
// Serie analysis for benchmark
|
636 |
//
|
|
|
637 |
|
638 |
if (serie.samples === undefined) serie.samples = {};
|
639 |
serie.samples[sample.buildId] = sample.value;
|