Tag: parallelism

Tests Timing Out? Check Go Tests Parallelism

Go Tests Parallelism The command go test ./… lists all packages in the current directory, builds tests executable for each package, and runs them. The run part is interesting. By default, the number of packages executed in parallel is equal to the value of GOMAXPROCS variable. On my laptop, it is 12 which is the number of CPU cores available.…