mirror of
https://github.com/liabru/matter-js.git
synced 2024-11-27 09:50:52 -05:00
change perf theshold in test
This commit is contained in:
parent
522f4e841d
commit
7b00354409
1 changed files with 4 additions and 1 deletions
|
@ -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]) => {
|
||||
|
|
Loading…
Reference in a new issue