From db459c46bbef9294f27f32170886aa34588c7941 Mon Sep 17 00:00:00 2001 From: Serhat Sevki Dincer Date: Sat, 11 May 2024 13:45:08 +1000 Subject: [PATCH] :wrench: tune test params --- sorty_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sorty_test.go b/sorty_test.go index 97d36fc..53c9b42 100644 --- a/sorty_test.go +++ b/sorty_test.go @@ -19,7 +19,8 @@ import ( ) const ( - bufFull = 1 << 25 + // will have many equal & distinct elements in buffers + bufFull = 10_000_000 bufHalf = bufFull / 2 ) @@ -304,8 +305,8 @@ var stNames = [4]string{"sorty-1", "sorty-2", "sorty-3", "sorty-4"} func init() { maxMaxGor = uint64(runtime.NumCPU()) - if maxMaxGor == 0 { - maxMaxGor = 1 + if maxMaxGor < 2 { + maxMaxGor = 2 } else if maxMaxGor > 4 { maxMaxGor = 4 }