in benchmarks/benchmark/tools/model-load-benchmark/suite-generator/generator.go [63:96]
func generateBoolCasesForStruct(base config.Config) []config.Config {
var cases []config.Config
combinations := []struct {
EnableParallelDownloads bool
FileCacheForRangeRead bool
}{
{true, true},
{true, false},
{false, true},
{false, false},
}
for _, combo := range combinations {
newCase := deepCopyConfig(base)
if newCase.VolumeAttributes != nil {
newCase.VolumeAttributes.MountOptions.FileCache.EnableParallelDownloads = combo.EnableParallelDownloads
if !combo.EnableParallelDownloads {
newCase.VolumeAttributes.MountOptions.FileCache.ParallelDownloadsPerFile.Base = 0
newCase.VolumeAttributes.MountOptions.FileCache.MaxParallelDownloads.Base = 0
}
}
if newCase.VolumeAttributes != nil {
newCase.VolumeAttributes.FileCacheForRangeRead = combo.FileCacheForRangeRead
}
cases = append(cases, newCase)
}
return cases
}