fix limiting one allocation in utf8 tasks

This commit is contained in:
Артём Гаркавый 2022-02-24 12:32:06 +00:00 committed by Fedor Korotkiy
parent 966462cc08
commit 2ea95934a4

View file

@ -378,7 +378,7 @@ func runTests(testDir, privateRepo, problem string) error {
} }
func noMoreThanTwoTimesWorse(old, new *benchstat.Metrics) (float64, error) { func noMoreThanTwoTimesWorse(old, new *benchstat.Metrics) (float64, error) {
if new.Mean > 2*old.Mean { if new.Mean > 1.99*old.Mean {
return 0.0, nil return 0.0, nil
} }