package
1.0.8
Repository: https://github.com/acsaba22/go.git
Documentation: pkg.go.dev

# README

  1. edit server.go, add profiling to the import:

import _ "net/http/pprof"

  1. run the server

  2. check out the page

http://localhost:8000/count?n=10000000000

  1. check out profiling page: http://localhost:8000/debug/pprof/

  2. Find the bottleneck with the go tool:

$ go tool pprof http://localhost:8000/debug/pprof/profile?seconds=30s