Oreilly - Measuring Performance with Benchmarks in Go
by Brian Ketelsen | Released July 2017 | ISBN: 9781491992166
A reliable and comprehensive test suite for your applications isn't a luxury anymore—it's a requirement. This course is the third in a series of "Testing in Go" programs that teach you how to test your Go applications to make sure what you ship works the first time. It focuses specifically on how to write benchmark tests in Go that capture micro benchmarks of your code's performance.Learn how to write benchmark tests in Go to capture micro benchmarks of your code's performanceUnderstand the ways to benchmark your code (and nothing else)Uncover the secret ways the Go compiler tries to defeat you when you're running benchmarksDiscover the ways to get around the traps the Go compiler sets when you're running benchmarksLearn how to avoid benchmarking setup/teardown codeExplore methods for running profiles on your benchmarks to see what's going on under the hoodBrian Ketelsen is the founder of the Gopher Academy, the parent group that manages GopherCon, the Go programming language conference. A prolific open source enthusiast, he has contributed to many of Go's largest projects, including Docker, Kubernetes, etcd, SkyDNS, Kong, Go-Kit, and Goa. Brian holds a bachelor's degree in computer science from American InterContinental University. Show and hide more
- Introduction to Benchmarking Code 00:07:00
- Writing Good Benchmarks 00:03:17
- Avoiding Compiler Optimizations 00:01:26
- Setup and Teardown in Benchmarks 00:02:13
- Profiling Benchmarks 00:05:36
Show and hide more
TO MAC USERS: If RAR password doesn't work, use this archive program:
RAR Expander 0.8.5 Beta 4 and extract password protected files without error.
TO WIN USERS: If RAR password doesn't work, use this archive program:
Latest Winrar and extract password protected files without error.