Skip to content

Commit ef96be9

Browse files
Stabilize measurement performance tests (#10485)
Signed-off-by: Artem Savchenko <armisav@gmail.com>
1 parent 54629a0 commit ef96be9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

foundations/core/packages/measurements/src/__tests__/performance.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ describe('performance', () => {
4242

4343
// Overhead should be reasonable (typically < 50% for simple operations)
4444
// This is informational rather than a strict assertion
45-
expect(overheadPercentage).toBeLessThan(200)
45+
expect(overheadPercentage).toBeLessThan(400)
4646
})
4747

4848
it('should measure overhead with deep nested contexts', async () => {
@@ -154,7 +154,7 @@ describe('performance', () => {
154154
console.log(` Overhead: ${overhead.toFixed(2)}ms (${overheadPercentage.toFixed(2)}%)`)
155155

156156
// NoMetricsContext should have very low overhead
157-
expect(overheadPercentage).toBeLessThan(50)
157+
expect(overheadPercentage).toBeLessThan(100)
158158
})
159159
})
160160

@@ -195,7 +195,7 @@ describe('performance', () => {
195195
console.log(` Collected operations: ${aggregated.measurements.request?.operations ?? 0}`)
196196

197197
expect(aggregated.measurements.request).toBeDefined()
198-
expect(overheadPercentage).toBeLessThan(100) // Should be less than 100% overhead
198+
expect(overheadPercentage).toBeLessThan(200) // Should be less than 100% overhead
199199
})
200200
})
201201
})

0 commit comments

Comments
 (0)