0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-11-23 09:26:51 -05:00

change perf theshold in test

This commit is contained in:
liabru 2021-01-27 23:59:30 +00:00
parent 522f4e841d
commit 7b00354409

View file

@ -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]) => {