@jsenv/performance-impact 4.3.0 → 4.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/performance-impact",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.1",
|
|
4
4
|
"description": "Report pull request impacts on performance metrics",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@jsenv/dynamic-import-worker": "1.2.1",
|
|
39
|
-
"@jsenv/filesystem": "4.
|
|
40
|
-
"@jsenv/github-pull-request-impact": "1.7.
|
|
41
|
-
"@jsenv/humanize": "1.2.
|
|
39
|
+
"@jsenv/filesystem": "4.10.2",
|
|
40
|
+
"@jsenv/github-pull-request-impact": "1.7.7",
|
|
41
|
+
"@jsenv/humanize": "1.2.8",
|
|
42
42
|
"@jsenv/log": "3.5.2"
|
|
43
43
|
}
|
|
44
44
|
}
|
package/readme.md
CHANGED
|
@@ -24,7 +24,7 @@ With time you'll be capable to recognize unusual variation in your performance m
|
|
|
24
24
|
|
|
25
25
|
## How to catch small performance impacts?
|
|
26
26
|
|
|
27
|
-
Catching (very) small performance impacts with confidence requires repetition and time. You need to:
|
|
27
|
+
Catching (very) small performance impacts with confidence requires repetition and time. You need to:
|
|
28
28
|
|
|
29
29
|
1. Let your code be used a lot of times in a lot of scenarios and see the results. This could be scripts, real users or both.
|
|
30
30
|
|
|
@@ -52,10 +52,10 @@ const getAllImpactRatios = ({ afterMergeMetrics, beforeMergeMetrics }) => {
|
|
|
52
52
|
metricDiff === 0
|
|
53
53
|
? 0
|
|
54
54
|
: metricValueBeforeMerge === 0
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
? 1
|
|
56
|
+
: metricValueAfterMerge === 0
|
|
57
|
+
? -1
|
|
58
|
+
: metricDiff / metricValueBeforeMerge;
|
|
59
59
|
allRatios.push(metricDiffRatio);
|
|
60
60
|
});
|
|
61
61
|
return allRatios;
|