Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 463 Bytes

README.md

File metadata and controls

12 lines (9 loc) · 463 Bytes

profiling-demo

Based on Dave Cheney's profiling exercise from GopherCon 2019

Two little demos

  • Simple word count app: words_test.go.
    • Hint 1 - syscalls can be slow, try CPU profiling.
    • Hint 2 - Once you've fixed the CPU usage, try using the memory profiler to see if there's any stray memory allocations.
  • Mutex profiling: mutex_test.go.