From 2ea95934a4e6035f996d1b532dc16cf37be22ec8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=93=D0=B0=D1=80=D0=BA?= =?UTF-8?q?=D0=B0=D0=B2=D1=8B=D0=B9?= Date: Thu, 24 Feb 2022 12:32:06 +0000 Subject: [PATCH] fix limiting one allocation in utf8 tasks --- tools/testtool/commands/test_submission.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testtool/commands/test_submission.go b/tools/testtool/commands/test_submission.go index 70f964d..9338b83 100644 --- a/tools/testtool/commands/test_submission.go +++ b/tools/testtool/commands/test_submission.go @@ -378,7 +378,7 @@ func runTests(testDir, privateRepo, problem string) 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 }