Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC
Commits:
-
7b27f25a
by Simon Jakobi at 2026-08-14T06:26:54-04:00
-
e5de423b
by Simon Jakobi at 2026-08-14T06:26:54-04:00
2 changed files:
Changes:
| ... | ... | @@ -156,8 +156,8 @@ class RelativeMetricAcceptanceWindow(MetricAcceptanceWindow): |
| 156 | 156 | self.__tol = tol
|
| 157 | 157 | |
| 158 | 158 | def get_bounds(self, baseline: float) -> Tuple[float, float]:
|
| 159 | - lowerBound = trunc( int(baseline) * ((100 - float(self.__tol))/100))
|
|
| 160 | - upperBound = trunc(0.5 + ceil(int(baseline) * ((100 + float(self.__tol))/100)))
|
|
| 159 | + lowerBound = trunc( baseline * ((100 - float(self.__tol))/100))
|
|
| 160 | + upperBound = trunc(0.5 + ceil(baseline * ((100 + float(self.__tol))/100)))
|
|
| 161 | 161 | |
| 162 | 162 | return (lowerBound, upperBound)
|
| 163 | 163 |
| ... | ... | @@ -3,7 +3,8 @@ |
| 3 | 3 | # after they have been loaded into the `LoaderState`.
|
| 4 | 4 | # However, this property is currently not validated automatically.
|
| 5 | 5 | test('LinkableUsage01'
|
| 6 | - , [ collect_compiler_stats('all', 2)
|
|
| 6 | + , [ collect_compiler_stats('bytes allocated', 2)
|
|
| 7 | + , collect_compiler_stats('max_bytes_used', 5)
|
|
| 7 | 8 | , extra_files(['genLinkables.sh', 'BCOTemplate.hs'])
|
| 8 | 9 | , pre_cmd('$MAKE -s --no-print-directory LinkableUsage01_Prep')
|
| 9 | 10 | , req_bco
|
| ... | ... | @@ -18,7 +19,8 @@ test('LinkableUsage01' |
| 18 | 19 | |
| 19 | 20 | # Performance test for bytecode `Linkable`s.
|
| 20 | 21 | test('LinkableUsage02'
|
| 21 | - , [ collect_compiler_stats('all', 2)
|
|
| 22 | + , [ collect_compiler_stats('bytes allocated', 2)
|
|
| 23 | + , collect_compiler_stats('max_bytes_used', 5)
|
|
| 22 | 24 | , extra_files(['genLinkables.sh', 'BCOTemplate.hs'])
|
| 23 | 25 | , pre_cmd('$MAKE -s --no-print-directory LinkableUsage02_Prep')
|
| 24 | 26 | , req_bco
|