Algorithm
Benchmarking in Go, with Example
· β˜• 3 min read
If you think it’s slow, first prove it with a benchmark. Don't assume if things are slow. Benchmark it and see if they are really slow. Benchmarking is the way we check how fast our algorithm is for a given unit of the program. In benchmarking, we typically see how many iterations can a piece of code can run in a given time.
https://d2kbulfv42d43j.cloudfront.net/2020/benchmarking_in_golang_car_432376_960_720.jpg