Python is generally faster than Ruby, especially in the newer versions. That said, we’re still talking about two of the slowest languages out there, so the performance gap probably isn’t that big.
[1]: https://benchmarksgame-team.pages.debian.net/benchmarksgame/...