Pidoku
5Performance

Archive

This learning material is in the archive. It is not currently maintained and has not been updated with the latest information, so tool versions, prices and dates may be out of date.

Performance

Module 55 lessons~4h 40m

Lessons, in order

About this module

Modules 3 and IV explained what the runtime does. This module is about measuring a program, understanding what the compiler and the CPU did with it, and making it faster on purpose.

#LessonThe question it answers
5.aBenchmarking and ProfilingHow do I measure correctly, and find where the time and memory go?
5.bThe CompilerWhat do inlining, bounds-check elimination and PGO do to my code?
5.cCache-Friendly DataWhy does data layout matter more than instruction count?
5.dcgo, SIMD and AssemblyHow do I reach native code and vector instructions, and what does it cost?
5.eNetworking and the NetpollerHow does a Go server handle connections, and how do I stream a response?

When you finish you can write a trustworthy benchmark, read a CPU and heap profile, explain a speed-up in terms of cache lines and inlining, and build a streaming HTTP server that behaves under load. Module 6 uses every one of these.

↑↓ navigate↵ openesc close

100% drag to pan · scroll or pinch to zoom · double-click to zoom in