Your Cart
Loading

Go: Performance Tuning and Benchmarking (pre-order)

On Sale
€0.00
Free Download
Added to cart

About


Have you ever wondered how to determine if your Go code is performing at its best?


Benchmarks help you spot slow code and fix it. They also help you choose the best data structures and algorithms. By the end of this book, you will know how to write benchmarks that guide your engineering decisions.


What you will learn


  • How to write benchmarking tests from scratch
  • How to convert your regular tests into benchmarks
  • How to interpret benchmarking results
  • How to structure table-driven benchmarks
  • How to run benchmarks in parallel
  • How to avoid common mistakes
  • How to compare benchmarks
  • How to speed up code and reduce memory use by choosing the right data structures and algorithms
  • How to run benchmarking as a part of CI pipelines using GitHub Action


By mastering these skills, you will improve your understanding of the code. It will help you decide if your project requires refactoring. And if you or your team are making effective use of engineering time. With data on how and why to improve the code, you’ll be better able to make a business case for a change request.


You will learn if and why chasing nanoseconds wastes engineering time in some cases. Knowing trade-offs and making informed decisions will make you a better engineer.


What you get


By placing the pre-order, you register interest in the book. When the early release edition launches, you will get an email with instructions on how to purchase the book.


Your download will be a ZIP file containing the PDF and ePUB formats of the book (make sure to save the confirmation email containing the link to download the book).


This format is compatible with any eBook reader, as well as computers, phones, or tablets.


The book includes free access to a GitHub repository that contains all the code examples. You can download the Go code and run all benchmarks yourself.



Updating to the newest edition


The book includes free lifetime updates. If you have purchased a previous version, follow these steps to obtain the latest edition:


  1. Click the link in your original download email (make sure to save this email, as it contains your key for future updates)
  2. Download the ZIP file.


Enjoy the new version!


You will get a PDF (131KB) file