How to benchmark cpu intensive functions in Go? With this tutorial we see how to benchmark functions and how to run benchmark using the go tooling
Benchmark docs - https://golang.org/pkg/testing/#hdr-Benchmarks
Testing flags - https://golang.org/cmd/go/#hdr-Testing_flags
Source Code - https://play.golang.org/p/3IrhNGJhg3v
Golang Testing Tutorial - https://youtu.be/JgG8ixo_DHk
💼 Golang Cafe - https://golang.cafe
📬 Golang Cafe Jobs Newsletter - https://golang.cafe/newsletter
🐦 Golang Cafe Twitter - https://twitter.com/golangcafe
📣 Telegram Channel - https://t.me/golangcafe
🙏 Found this video useful? Help me make more by donating $5.00 - https://golang.cafe/5USD