4 ms·
I wish people who aren't in the business of testing had a bit more awareness of the unknown (to them) unknowns... The article takes a tiny slice of Python: two
by crabbone 2y ago
I wish people who aren't in the business of testing had a bit more awareness of the unknown (to them) unknowns...
The article takes a tiny slice of Python: two exceptionally simplistic algorithms that aren't representative of any sort of real-world workload an actual Python program might be tasked with, and then adds a bunch of unknowns s.a. how long does it take the system to load the text of the program, anything about the load of the system running the test etc.
I feel like this is another one of those "politically" motivated articles (i.e. the author likes Python and wants to say something nice about it, regardless of the actual state of events in Python). But then also tries to serve this opinion as "well, this is my take, yours could be different, nobody knows who's right, but nobody else rose to the task of figuring it out, so you might as well go with what I say", as in:
> In the title of this article I asked if Python is really that slow. There isn't an objective answer to this question, so you will need to extract your own conclusions based on the data I presented here, or if interested, run your own benchmarks and complement my results with your own.
Well, no, there is an objective way, but it's hard! It's a lot of work to figure out what's the minimum required time is for the task, or the minimum space etc. and then see if your program, that was proved to be optimal for the task in the given language approaches that limit, and what are the contributing circumstances.
- npinsker 2y agoAt the very least, I really wish all these benchmarks would bubble sort e.g. ugly Python dicts with varying key and value types, rather than ints all the time. That kind of thing's what I think of Python as particularly useful for. That it's harder to write in any other language is unfortunately exactly what makes it the important thing to test.