Re:Ruby in Twenty Minutes (2006)
by chalupa-mankey on Saturday February 09, 2019 @08:44PM
(#19125910)
Ruby is a little faster than Python in most situations these days, to nitpick.
[ Parent
| on HN ]
No definitely not. Reply with a link to any benchmark from the last couple years and I'll believe you
From 2018 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.
Re:Ruby in Twenty Minutes (2006)
by TheTruth321 on Sunday February 10, 2019 @06:22AM
(#19127365)
Inconvenient.
https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
Ruby is fast in some cases and python in some other cases.
Re:Ruby in Twenty Minutes (2006)
by mixmastamyk on Saturday February 09, 2019 @08:47PM
(#19125919)
Every new version of Py has speed improvements as well.