top | item 38873552 (no title) corlinpalmer | 2 years ago Here's my implementation in Go, which runs in under 5 seconds. It doesn't use anything too obscure, only the built-in maps and no external libraries. It's also the fastest solution I've tested on my M3 Pro Mac. Eager to see what beats it!https://gist.github.com/corlinp/176a97c58099bca36bcd5679e68f... discuss order hn newest bufferoverflow|2 years ago Look at the leaderboard for the fastest solutionshttps://github.com/gunnarmorling/1brc#resultsThe fastest is currently at 12 seconds (not on M3 Pro though). dvko|2 years ago There’s an implementation in C which should run in well under 2 seconds on your M3.https://github.com/dannyvankooten/1brc corlinpalmer|2 years ago Under 2 seconds seems rather impossible on my machine since the disk maxes out at 5.1 GB/s. This one ran in 7.4s on my M3:`bin/analyze measurements.txt 30.34s user 16.28s system 629% cpu 7.406 total` load replies (1) guss_bro|2 years ago The fastest java solution from the current leaderboard runs within 2.6 seconds in my brand new M3 Mac. corlinpalmer|2 years ago Is that `./calculate_average_royvanrijn.sh`? It runs in 6.7s for me.I would love it if you could run my solution and compare!
bufferoverflow|2 years ago Look at the leaderboard for the fastest solutionshttps://github.com/gunnarmorling/1brc#resultsThe fastest is currently at 12 seconds (not on M3 Pro though).
dvko|2 years ago There’s an implementation in C which should run in well under 2 seconds on your M3.https://github.com/dannyvankooten/1brc corlinpalmer|2 years ago Under 2 seconds seems rather impossible on my machine since the disk maxes out at 5.1 GB/s. This one ran in 7.4s on my M3:`bin/analyze measurements.txt 30.34s user 16.28s system 629% cpu 7.406 total` load replies (1)
corlinpalmer|2 years ago Under 2 seconds seems rather impossible on my machine since the disk maxes out at 5.1 GB/s. This one ran in 7.4s on my M3:`bin/analyze measurements.txt 30.34s user 16.28s system 629% cpu 7.406 total` load replies (1)
guss_bro|2 years ago The fastest java solution from the current leaderboard runs within 2.6 seconds in my brand new M3 Mac. corlinpalmer|2 years ago Is that `./calculate_average_royvanrijn.sh`? It runs in 6.7s for me.I would love it if you could run my solution and compare!
corlinpalmer|2 years ago Is that `./calculate_average_royvanrijn.sh`? It runs in 6.7s for me.I would love it if you could run my solution and compare!
bufferoverflow|2 years ago
https://github.com/gunnarmorling/1brc#results
The fastest is currently at 12 seconds (not on M3 Pro though).
dvko|2 years ago
https://github.com/dannyvankooten/1brc
corlinpalmer|2 years ago
`bin/analyze measurements.txt 30.34s user 16.28s system 629% cpu 7.406 total`
guss_bro|2 years ago
corlinpalmer|2 years ago
I would love it if you could run my solution and compare!