Re:The One Billion Row Challenge in Go: from 1m45s to 4s in ...
by timetopay on Sunday March 03, 2024 @04:17AM
(#39579597)
A few months ago, I had to quickly bang out a script to output about 20 million lines of text, each the output of a hash function. My naive solution took more than a few minutes - simple optimizations such as writing every 10k lines cut the time significantly. Threading would have helped quite a bit as well.
Re:The One Billion Row Challenge in Go: from 1m45s to 4s in ...
by latchkey on Sunday March 03, 2024 @01:07AM
(#39578835)
I hate to "me too", but you also nailed that analysis.
Re:The One Billion Row Challenge in Go: from 1m45s to 4s in ...
by yau8edq12i on Sunday March 03, 2024 @04:49AM
(#39579744)
> I hate to "me too"
Then why do you do it?
Re:The One Billion Row Challenge in Go: from 1m45s to 4s in ...
by jasonwatkinspdx on Sunday March 03, 2024 @11:44AM
(#39581977)
It also underscores just how insane raw disk bandwidth is on modern ssds. Most software is not designed around a world where you have gigabytes a second of sequential scan on a laptop.
Re:The One Billion Row Challenge in Go: from 1m45s to 4s in ...
by walth on Sunday March 03, 2024 @01:56PM
(#39583296)
I believe this test is run several times and the data set fits in page cache.
Re:The One Billion Row Challenge in Go: from 1m45s to 4s in ...
by jasonwatkinspdx on Sunday March 03, 2024 @08:35PM
(#39586215)
Yes, though on a laptop it's unlikely the entire file is being cached in dram. Also ssd's with multiple GiB/sec bandwidths are indeed common, which was my basic point in comparison vs how much slower sed/awk style processing is.
I think my favorite part was the very first section, where he got baseline measurements with `cat`, `wc`, and friends. I wouldn't have thought to do that and its such an easy way to get a perspective on what's "reasonable".