Skip to content

Commit 562b4a3

Browse files
committed
ci: adds truncation in percentage difference to reduce noise
Signed-off-by: Vincent Biret <[email protected]>
1 parent 0a5a07d commit 562b4a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

performance/resultsComparer/policies/PercentageMemoryUsagePolicy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public override bool Equals(BenchmarkMemory? x, BenchmarkMemory? y)
4949
}
5050
private static double GetPercentageDifference(BenchmarkMemory x, BenchmarkMemory y)
5151
{
52-
return Math.Abs(GetAbsoluteRatio(x, y)) * 100;
52+
return Math.Truncate(Math.Abs(GetAbsoluteRatio(x, y)) * 10000) / 100;
5353
}
5454
private static double GetAbsoluteRatio(BenchmarkMemory x, BenchmarkMemory y)
5555
{

0 commit comments

Comments
 (0)