- Understand golang's trace profiling tool and impact of goroutines on performance
go mod vendor
go build
./mandelbrot-set -mode seq
go tool trace trace.out
- There are 3 different modes that you can choose from to generate the image
seq
: sequentially calculate each pixelpx
: spawns a new go routine per pixelrow
: spawns a new go routine per row of the image
- Use
./mandelbrot-set -help
command to know about available flags