Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API

From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
the c?
the only reason mine is so low is I did clever data structure... idk why rust is so slow. maybe I should revisit -
@Lensflare Little benchmark battle we did. Basically her isSpam program ported and optimized in different languages
Will update my rust version soon :P -
I just tried to look over mine but quite honestly I don't think I can make it faster. rust womp womp
-
@jestdotty I have some ideas to probably make it like 100x faster. But sadly I don't have time now
Also benchmarks like this often have very little to do with the language and *much* more with how good your algorithm is
You could probably write a Java version thats 10x faster than the original Rust and C versions -
@BordedDev If you have a smart algorithm vs brute force string comparisons, then yes :P
-
@retoor have you pushed your latest C code? Running the benchmark on master doesn't show your improvement (it's still the same speed and slower than the rust version)
-
@BordedDev CPUs are pretty quick but it certainly helps having to do like 50x less work :P
Everyone ready for a new round of text analysis battle between languages? Because we have a new winner!
Extracting books.
Extracted books.
***benchmarking***
Time C: 1.597700595855713
Time Rust: 11.118101596832275
Time CPP: 4.090646266937256
Time Borded CPP: 2.62941575050354
Time Jest Rust: 5.983397006988525
random