Why benchmarks are lying to you, and hash maps are not always faster than arrays
In this article, we are going to take a look at a LeetCode problem that took me down the rabbit hole of Golang Benchmarks and Microbenchmarks in general. We will see how easy it is to mislead yourself with microbenchmarks and of course, how to avoid ...
blog.dejangegic.com9 min read