Daniel Posthuma

Powered by 🌱Roam Garden

September 30th, 2021

This is an "Orphan" page. Its core content has not been shared: what you see below is a loose collection of pages and page snippets that mention this page, as well as snippets of this page that were quoted elsewhere.

Go runs the entire benchmark function multiple times with increasing levels of concurrency. This is unexpected. I of course assumed the body of the RunParallel anonymous function would be run multiple times, but I did not know that the entire func Benchmark... function would be run multiple times. This can cause issues if benchmarking libraries that manage state in a package global way.