jinyus / related_post_gen

Data Processing benchmark featuring Rust, Go, Swift, Zig, Julia etc.
MIT License
323 stars 99 forks source link

Rerun with newer Ruby version #525

Open d-krushinsky opened 1 day ago

d-krushinsky commented 1 day ago

Looks like benchmark uses ruby 3.2.5, but now newer version (3.3.5) available in arch packages (https://archlinux.org/packages/?name=ruby) with it ruby solution should work faster (smth like 1.1s-1.3s I think) and consume less memory (~25500k instead of ~37800k) so it make sense to rerun benchmark with 3.3.5

jinyus commented 1 day ago

What's the indication that it was ran on 3.2.5? I build a fresh docker container everytime so it would've used the latest version in the repo. Nonetheless, I will run it again as I have a couple of compilers to update.

d-krushinsky commented 1 day ago

What's the indication that it was ran on 3.2.5?

When I ran https://github.com/jinyus/related_post_gen/pull/521 locally with 3.3.4 it was using less memory, but in yours comment it using more, so I decided to check what version you using. then I found that you using docker with arch and installs ruby via pacman. I checked https://archlinux.org/packages/?name=ruby and there was 3.2.5 in Extra and 3.3.5 in Extra-Testing (check my last comment in PR) you updated results on 10th Oct, but 3.3.5 were moved to Extra repository only on 14th Oct

jinyus commented 1 day ago

Thanks for clarification, I will update it soon

jinyus commented 1 hour ago

It's slower on the test machine. Ran the test 3 times on each with similar results.

ruby 3.2.5 (2024-07-26 revision 31d0f1a2e7): | Ruby | 1.47 s | 23.07 s | 208.90 s | 233.44 s |

ruby 3.3.5 (2024-09-03 revision ef084cc8f4): | Ruby | 1.56 s | 24.35 s | 227.20 s | 253.12 s |