The One Billion Row Challenge in Go: from 1m45s to 4s in nine solutions
(benhoyt.com)
from tedu to programming on 04 Mar 2024 05:14
https://azorius.net/g/programming/p/8lGG31Kk9cS3nYfG1c-The-One-Billion-Row-Challenge-in-Go-from-1m45s-t
from tedu to programming on 04 Mar 2024 05:14
https://azorius.net/g/programming/p/8lGG31Kk9cS3nYfG1c-The-One-Billion-Row-Challenge-in-Go-from-1m45s-t
This article describes the nine solutions I wrote in Go, each faster than the previous. The first, a simple and idiomatic solution, runs in 1 minute 45 seconds on my machine, while the last one runs in about 4 seconds. As I go, I’ll show how I used Go’s profiler to see where the time was being spent.
threaded - newest