Skip to content

A pair of simple demos to play with the Go profiling tools

License

Notifications You must be signed in to change notification settings

pete-woods/profiling-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A pair of simple demos to play with the Go profiling tools

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages