Re:Ruby 3.2.0 Is from Another Dimension
by Mikeb85 on Wednesday January 04, 2023 @05:57AM
(#34244199)
Basically any benchmark that uses just the language. Throw some loops and maths in there.
It doesn't really matter though, both languages are used typically for scripting. But just shows it's not really about the "language", it's about the ecosystem.
In all the language comparisons I've found over the years, Python consistently comes out slightly slower, for example:
https://github.com/kostya/benchmarks
Bearing in mind these are probably not even using YJIT, which makes Ruby considerably faster in some scenarios.
Re:Ruby 3.2.0 Is from Another Dimension
by yxhuvud on Wednesday January 04, 2023 @09:13AM
(#34245671)
Ruby used to be slower though, during the 1.8.7 times. But that was a long time ago now.
Re:Ruby 3.2.0 Is from Another Dimension
by berkut on Wednesday January 04, 2023 @06:21AM
(#34244331)
Here's some randomish ones (fibionacci recursive, leibniz pi, amicable numbers, sieve of eratosthenes, class methods) I performed two years ago for my improved (dictionaries, much faster stack operations and extra opcodes for loops) version of Lox (Crafting Interpreters):
Any reference/numbers to back this up ? Just genuinely curious about this.