Skip to content

Commit

Permalink
change perf theshold in test
Browse files Browse the repository at this point in the history
  • Loading branch information
liabru committed Jan 27, 2021
1 parent 522f4e8 commit 7b00354
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/TestTools.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,10 @@ const comparisonReport = (capturesDev, capturesBuild, buildVersion, save) => {
similarityEntries.sort((a, b) => a[1] - b[1]);

let perfChange = 1 - (totalTimeDev / totalTimeBuild);
perfChange = perfChange < -0.05 || perfChange > 0.05 ? perfChange : 0;

const perfChangeThreshold = 0.075;
const perfChangeLarge = Math.abs(perfChange) > perfChangeThreshold;
perfChange = perfChangeLarge ? perfChange : 0;

let similarityAvg = 0;
similarityEntries.forEach(([_, similarity]) => {
Expand Down

0 comments on commit 7b00354

Please sign in to comment.