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
-
jestdotty653222dthe c?
the only reason mine is so low is I did clever data structure... idk why rust is so slow. maybe I should revisit -
12bitfloat1081422dHave you pushed the code? The last commit to the c version is from 7 months ago -
12bitfloat1081422d@Lensflare Little benchmark battle we did. Basically her isSpam program ported and optimized in different languages
Will update my rust version soon :P -
jestdotty653222dI just tried to look over mine but quite honestly I don't think I can make it faster. rust womp womp -
12bitfloat1081422d@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 -
12bitfloat1081421d@BordedDev If you have a smart algorithm vs brute force string comparisons, then yes :P -
12bitfloat1081421d@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) -
12bitfloat1081421d@BordedDev CPUs are pretty quick but it certainly helps having to do like 50x less work :P -
BordedDev285120d@12bitfloat you should see what happens when you remove branching ;P or optimise for that pipelining -
retoor82720dJust got mentioned by bordii. No, this is still my latest C code from months ago. But it runs on my laptop faster than the rest. What does the build server say btw? Since we had an server upgrade.
-
12bitfloat1081420d -
retoor82720d@12bitfloat please update build script: https://retoor.molodetz.nl/retoor/.... You killed it i guess. It works exactly as github actions. But it's in the `.gitea` folder. A yml.

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