2 ms·
No definitely not. Reply with a link to any benchmark from the last couple years and I'll believe you
by spricket 8y ago
No definitely not. Reply with a link to any benchmark from the last couple years and I'll believe you
- tny 8y agohttps://benchmarksgame-team.pages.debian.net/benchmarksgame/faster/ruby.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/... Ruby is fast in some cases and python in some other cases.
- pmontra 8y agoFrom 2018 https://benchmarksgame-team.pages.debian.net/benchmarksgame/faster/ruby.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/... Sometimes Ruby's faster, sometimes Python is. However all those benchmarks are probably useless. They are not testing how the language is used or should be. The trick with all the scripting languages is to make the CPU spend most of its time in the C code inside the standard library or the implementation of the native constructs of the language with as little overhead as possible. Example: you don't want to do numerical computation using plain Python, you want to use Numpy. You also want to learn very well all the ways Ruby's standard library can group operations in a single method call saving time compared to naive multi method chains.
- TheTruth321 8y agoInconvenient.