-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added to stable comparison #1
Comments
Thanks! Can you run again but with |
I've updated the repo so that run_cpp.sh automatically finds number of threads to use, and compile with that number as constexpr. Could you pull and run it again? Thanks! |
On my machine I get
and for my go version https://github.com/AlexanderYastrebov/1brc/tree/go-implementation/src/main/go
@buybackoff would be possible to add a record for go implementation in your chart? I proposed in gunnarmorling/1brc#253 to support Docker builds but this is out of scope for now as per gunnarmorling/1brc#182 (comment) |
That looks unusually slow o.O I get 13.5-14.5 with 1 thread on 2 separate test PC. I think PC specs should be included any time a benchmark number is posted. Also any related inputs |
@lehuyduc Sure, that's why I would like to know how it stands compared to your version, C# and best java. |
@AlexanderYastrebov Will do eventually, not today/tomorrow. @lehuyduc I'm reading your |
@buybackoff I'm not done yet, still has some tiny tricks left :D Also the latest version is ~28% faster compared to the last one you tested |
@AlexanderYastrebov sorry but it's so inconvenient. Not only it's in Go and I need to download tools, it's inside this huge Java fork. If you think it's a real contender for top spots then please create a separate repo and instructions to build. Also the file path should be the first argument to an executable. |
@buybackoff Hi, no worries. I hope maybe I can get it into the main repo gunnarmorling/1brc#298 to compare against java |
You just need to download this file:
I think this It would be really nice if @buybackoff could run your solution. |
@lehuyduc Hi, it looks like your yesterday version is much faster on 10K, but much slower on the default data. Is that expected? run_cpp.sh expects main.cpp, but I used 1brc_final_valid.cpp as before. |
Hmm, I think this might be due to CPU difference. I tested the latest code on AMD 7502P directly instead of AMD 2950X like before. Both default + 10K results are faster on 7502P. What results do you get when running the latest version? |
The default goes from 1.649 to 1.792. Tried both 6/12 compilation. 10K goes from 3.081 to 2.863 Running only on P-cores of i5-13500. |
Hmm, I really don't know what cause this. It might even be due to Intel vs AMD difference. I tested on 2950X again, and it didn't cause any slowdown (but no speedup because the CPU is quite old). I'll try looking into it later. But lower 10K time means we can still keep it :D |
Oh, I found the reason. It's a typo:
I'll test a few more ideas and push again later this weekend. Thanks for helping me notice the problem! |
So far the top result overall. Great job!
https://github.com/buybackoff/1brc?tab=readme-ov-file#native
The text was updated successfully, but these errors were encountered: