4 ms·
Python is really really slow compared to JS though.
by jampekka 2y ago
Python is really really slow compared to JS though.
- gaganyaan 2y agoCPython is (though it's slowly getting better). Pypy is amazingly fast
- zeroonetwothree 2y agoI once worked on a Python system that had 50 machines dedicated to it. We were able to rewrite it in a more performant language such that it easily ran on one machine. This also allowed us to avoid all the issues distributed systems have. So yeah, Python is not great for systems programming
- kukkamario 2y agoNode is so slow to start that python script can complete before Javascript even begins to execute.
- jampekka 2y agoFor extremely simple scripts maybe. I get around 70 ms difference in startup time. $ time python3 -c "print('Hello world')" Hello world real 0m0.017s $ time node -e "console.log('Hello world')" Hello world real 0m0.084s