Milestone 7: Testing & Performance
๐งช Milestone 7: Testing & Performance
Go is famous for its Performance. In this milestone, we learn how to prove our code works correctly and how to find where it is slow.
๐ Slow-Paced Deep Dives (University Modules)
- Module 1: Unit Testing (The Safety Inspector): GO-301. Writing automated checks for your code.
- Module 2: Benchmarking (The Stopwatch): GO-302. Measuring exactly how many nanoseconds your code takes.
๐ฅ Milestone Goals
- Write Table-Driven Tests for edge cases.
- Use Mocking (Module 4) to test code without a real database.
- Run Benchmarks to compare two different ways of solving a problem.
- Use pprof to see a โMapโ of your appโs memory usage.