Re:An Introduction to Metaprogramming in Ruby
by cutler on Thursday July 27, 2023 @07:16PM
(#36901350)
Other than a 60ms startup differential Ruby doesn't sacrifice ANY speed compared with Python. Those days are over.
[ Parent
| on HN ]
Re:An Introduction to Metaprogramming in Ruby
by bo-tato on Thursday July 27, 2023 @11:34PM
(#36902890)
If you're just using it for quick scripting, which is where startup time mostly matters, and you only use the stdlib and no external gems, you can do use --disable-gems and it starts in half the time as python for me.
Re:An Introduction to Metaprogramming in Ruby
by cutler on Saturday July 29, 2023 @12:02AM
(#36916764)
Hey, you're right. Down from 100ms to 30ms which is 10ms faster than Python. So it's game over for Python, not Ruby, after all ;-)
Re:An Introduction to Metaprogramming in Ruby
by KerrAvon on Friday July 28, 2023 @12:21AM
(#36903083)
Has Python launch time gotten faster? It used to take a second to start up, where Ruby would be instant on the same machine.
Well, both are quite slow for what it’s worth, compared to most other programming languages.
Which is still plenty fast for CRUD web applications even at large scales, don’t get me wrong, I’m just pointing out that JS for example often has a 10x multiplier between it and Ruby/Python.