Skip to content

Commit 93602fc

Browse files
committed
make thresholds very lenient, add docstrings
1 parent 8ed14e2 commit 93602fc

File tree

1 file changed

+18
-13
lines changed

1 file changed

+18
-13
lines changed

packages/core/src/test/codewhisperer/zipcode.test.ts

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,23 +40,25 @@ describe('zipCode', function () {
4040
afterEach(function () {
4141
sinon.restore()
4242
})
43-
43+
/**
44+
* 250 small 10 byte files.
45+
*/
4446
performanceTest(
4547
{
4648
testRuns: 10,
4749
linux: {
48-
userCpuUsage: 90,
49-
systemCpuUsage: 35,
50+
userCpuUsage: 100,
51+
systemCpuUsage: 50,
5052
heapTotal: 4,
5153
},
5254
darwin: {
53-
userCpuUsage: 90,
54-
systemCpuUsage: 35,
55+
userCpuUsage: 100,
56+
systemCpuUsage: 50,
5557
heapTotal: 4,
5658
},
5759
win32: {
58-
userCpuUsage: 90,
59-
systemCpuUsage: 35,
60+
userCpuUsage: 100,
61+
systemCpuUsage: 50,
6062
heapTotal: 4,
6163
},
6264
},
@@ -85,23 +87,26 @@ describe('zipCode', function () {
8587
}
8688
}
8789
)
90+
/**
91+
* 10 large 1 MB files.
92+
*/
8893

8994
performanceTest(
9095
{
9196
testRuns: 10,
9297
linux: {
93-
userCpuUsage: 90,
94-
systemCpuUsage: 35,
98+
userCpuUsage: 100,
99+
systemCpuUsage: 50,
95100
heapTotal: 4,
96101
},
97102
darwin: {
98-
userCpuUsage: 90,
99-
systemCpuUsage: 35,
103+
userCpuUsage: 100,
104+
systemCpuUsage: 50,
100105
heapTotal: 4,
101106
},
102107
win32: {
103-
userCpuUsage: 90,
104-
systemCpuUsage: 35,
108+
userCpuUsage: 100,
109+
systemCpuUsage: 50,
105110
heapTotal: 4,
106111
},
107112
},

0 commit comments

Comments
 (0)