func isReady()

in contrib/cmd/runkperf/commands/warmup/command.go [184:195]


func isReady(cliCtx *cli.Context, cores map[string]int) bool {
	target := cliCtx.Int("core-warmup-ready-threshold")
	isEKS := cliCtx.Bool("eks")

	n := 0
	for _, c := range cores {
		if c >= target {
			n++
		}
	}
	return (isEKS && n >= 2) || (!isEKS && n >= 1)
}