Two Go Programs, Three Different Profiling Techniques

  • Go’s stdlib includes the pprof package, which allows for cpu & memory profiling, in addition to execution tracing. Visualizers are included too.
  • Go’s default file I/O is unbuffered.
Edit