3 ms·
Depressing, since I used to like Python. Though I was always aware of the 100x slowdown (or cost increase) vs. C++. PyPy isn't much worse than Dart on this cha
by musicale 2y ago
Depressing, since I used to like Python. Though I was always aware of the 100x slowdown (or cost increase) vs. C++.
PyPy isn't much worse than Dart on this chart.
The interesting bit to me is JavaScript giving Go a run for its money. To me this indicates that Python could be a lot faster than it is.
I wonder where Swift would fit in?
- ashishb 2y ago> Depressing, since I used to like Python I used to love Python. In fact, I still maintain a fairly popular Android development tool written in Python https://github.com/ashishb/adb-enhanced https://github.com/ashishb/adb-enhanced Over time, my love has hit a reality check. I took the chart from here https://benjdd.com/languages/ https://benjdd.com/languages/, it does a very specific test of loop iterations. If you look at concurrency, I am sure Go will do way better than Node JS for concurrent request handling.
- MonstraG 2y agoOh no it's the bouncy ball chart. Please, if you have enough time, watch this https://youtu.be/EH12jHkQFQk https://youtu.be/EH12jHkQFQk and avoid making any decisions using this chart.
- raverbashing 2y agoHonestly yeah It's an artificial benchmark that means nothing in production Also the article does not bring much to the table except of python whining "Oh the Go dockerfile is smaller" Yes you compiled it and is running a binary. Big woop. Funny how the author not doing the same comparison with node
- ashishb 2y ago> "Oh the Go dockerfile is smaller" Yes you compiled it and is running a binary. Big woop. Funny how the author not doing the same comparison with node If I did that with Node, you would say what about Ruby. If I did that with Ruby, you would say what about Zig. There is no end to the list of languages. > It's an artificial benchmark that means nothing in production It was a cover illustration, I did not mention that at all. In fact, I demonstrated the resource consumption of Python's docker image. If you have suggestions to make the Python one, I am all ears.
- raverbashing 2y ago> If I did that with Node, you would say what about Ruby. No, because the comparison here is runtimes of interpreted languages Comparing a compiled binary to the python/node/ruby runtime is comparing Apples to Oranges
- ashishb 2y agoWhy do I have to restrict myself to interpreted languages only?
- ashishb 2y ago> and avoid making any decisions using this chart. I did not mention that chart at all in the blog post. I just used this as a nice illustration.