Benchmarking and Fuzzing

Learn about benchmarking and fuzzing, two important features provided by Go’s testing package .

Benchmarking

At times, we need to make sure that a test executes within an acceptable amount of time. To check this, we can take advantage of the benchmarks that are already provided by the testing package of the Go standard library. Let’s learn how to write a benchmark in Go:

Get hands-on with 1200+ tech skills courses.