855 B
855 B
Memory Handoff — Go
Domain
Memory / Allocations
Environment
- Go version: {{version}}
- Module: {{module_name}}
- Benchmark command:
go test -bench=. -benchmem -count=5 ./... - GOGC: default (100) | custom ({{value}})
Baseline
- Profiled with:
go test -memprofile - Top allocators (by bytes):
- {{func}} — {{MB}} MB ({{allocs}} allocs/op)
- ...
- Escape count: {{N}} escapes to heap
- GC: {{N}} cycles/sec, {{pct}}% CPU
Experiments
| # | Target | Category | Result | B/op Before | B/op After | allocs Before | allocs After | Notes |
|---|
Current State
- Branch:
codeflash/optimize - Last experiment: #{{N}}
- Next target: {{func}} ({{MB}} MB, {{allocs}} allocs/op)
Discoveries
- {{what worked, what didn't, dead ends}}