Based on Dave Cheney's profiling exercise from GopherCon 2019
- Simple word count app:
words_test.go
.- Hint 1 -
syscall
s 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.
- Hint 1 -
- Mutex profiling:
mutex_test.go
.