Skip to content

Commit 1de7355

Browse files
committed
ci: because I can't calculate a ratio properly...
Signed-off-by: Vincent Biret <[email protected]>
1 parent 5aea977 commit 1de7355

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
@@ -60,7 +60,7 @@ private static double GetPercentageDifference(BenchmarkMemory x, BenchmarkMemory
6060
}
6161
private static double GetRatio(BenchmarkMemory x, BenchmarkMemory y)
6262
{
63-
return (double)(x.AllocatedBytes - y.AllocatedBytes) / x.AllocatedBytes;
63+
return (double)(y.AllocatedBytes - x.AllocatedBytes) / x.AllocatedBytes;
6464
}
6565
public override string GetErrorMessage(BenchmarkMemory? x, BenchmarkMemory? y)
6666
{

0 commit comments

Comments
 (0)