Over a few evenings, attempt at doing something like https://github.com/gunnarmorling/1brc in go. Best run in 5.5sec on freshly restarted MacbookPro M1 with no other major software running, on 30 goroutines with 20Mb buffer per goroutine. Finaly cpu profile: