Simple example of GO resource pool implementation
After cloning, first build, and then run.
- Build the program
cd go_thread_pool_demo/cmd
go build
- Run the program to do profiling without resource pool
./cmd -memprofile mem_no_pool.prof -cpuprofile cpu_no_pool.prof
- Run the program to do profiling with resoruce pool
./cmd -memprofile mem_pool.prof -cpuprofile cpu_pool.prof -wp
- Get profile info as immages
go tool pprof -png cpu_no_pool.prof
go tool pprof -png mem_no_pool.prof
go tool pprof -png cpu_pool.prof
go tool pprof -png mem_pool.prof