Based on the trends of "<something something> so we rewrote our entire production stack in rust!" I am surprised there is not already a comment here!
I'd also be interested in how fast JavaScript/V8 executes by comparison.
Based on the trends of "<something something> so we rewrote our entire production stack in rust!" I am surprised there is not already a comment here!
I'd also be interested in how fast JavaScript/V8 executes by comparison.
What you mention from Rust is this: https://github.com/RagnarGrootKoerkamp/1brc/ The author says himself that his solution is not compliant in the readme.
So far the top place is not clear. .NET with noahfalk, C/C++ from lehuyduc, dzaima and austindonisan require more tests. The last looks the fastest so far on the default dataset, but has issues.
Here is my blog post with details: https://hotforknowledge.com/2024/01/13/1brc-in-dotnet-among-...
CLR performance can be considered nondeterministic given it JITs and performs profile-guided-optimizations - unless you go with AOT, but there's still going to be an initialization delay, and differences in cold vs. warm. vs hot-start scenarios. In order to be fair to all languages/platforms/runtimes involved, how is that managed?
1: https://www.reddit.com/r/rust/comments/18ws370/optimizing_a_...
Why would you use Javascript for that?