News for hackers. Stuff that matters.
Re:Python-based compiler achieves orders-of-magnitude speedups by coldtea on Wednesday March 15, 2023 @08:46AM (#35167440)
And yet the same supposedly "io bound" workloads (like "parse request, fetch something from DB, return it as JSON") still have widely difference performance characteristics in some languages vs others, with 10x to 100x requests handled per second...
Re:Python-based compiler achieves orders-of-magnitude speedups by acdha on Wednesday March 15, 2023 @09:17AM (#35167889)
2x, yes. If you’re seeing 100x you’re comparing different things like creating and serializing complex objects versus simple types or using a JSON parser which loads an entire document into objects versus one which only retrieved specific values.
Re:Python-based compiler achieves orders-of-magnitude speedups by coldtea on Wednesday March 15, 2023 @10:39AM (#35168965)
Well, perhaps not 100x in rps, but 10x sure:

Overall top performing frameworks (JS, Java, and Rust) at 650K rps. That's 7x.

Top Python based framework: 86K rps.

A very popular Python framework (flask): 2K rps. That's 325 times worse to the best.

And that's the "single DB query" benchmark: https://www.techempower.com/benchmarks/#section=data-r21&tes...

https://github.com/TechEmpower/FrameworkBenchmarks/wiki/Proj...