fascinating one.
go test ./... -count=1
go test ./... -coverprofile coverage.out
go tool cover -html=coverage.out -o coverage.html
DATABASE_DSN="postgres://postgres:Qwerty\!234@localhost:5432/yandex-diploma?sslmode=disable" go test ./... -bench=.
Run per each package separately:
DATABASE_DSN="postgres://postgres:Qwerty\!234@localhost:5432/yandex-diploma?sslmode=disable" go test -bench=. -memprofile=profiles/base.pprof
go tool pprof -http=":9090" profiles/base.pprof
Result diff for userlinks after changes in package (removing append):
Type: alloc_space
Time: Mar 10, 2022 at 2:27pm (MSK)
Showing nodes accounting for -33.94MB, 1.82% of 1864.95MB total
Anyway, the relational database is the most problem.
Available if you run:
godoc -http=:6060
To check documentation from internal
package here is link (?m=all
is essential here):
http://localhost:6060/pkg/github.com/magmel48/go-web/internal/app/?m=all