Skip to content

Commit

Permalink
🔧 tune test params
Browse files Browse the repository at this point in the history
  • Loading branch information
jfcg committed May 11, 2024
1 parent 5681390 commit db459c4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sorty_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ import (
)

const (
bufFull = 1 << 25
// will have many equal & distinct elements in buffers
bufFull = 10_000_000
bufHalf = bufFull / 2
)

Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit db459c4

Please sign in to comment.