Re:On average, Python in GraalVM is 8.92x faster than CPython
by Rochus on Wednesday November 03, 2021 @02:45PM
(#29098729)
> On average, Python in GraalVM is 8.92x faster than CPython
That's great, but on which benchmarks?
I would prefer a presentation like https://speed.pypy.org/ (according to which PyPy seems to be only half as fast; but this conclusion can change significantly depending on which benchmarks are used).
Re:On average, Python in GraalVM is 8.92x faster than CPython
by WkndTriathlete on Thursday November 04, 2021 @09:22AM
(#29106839)
In what way, besides speed? I'm genuinely curious. When I tried it the developer experience was mind-bogglingly terrible - 12GB and upwards of 20 minutes required to build "Hello, World" on an i7.
Re:On average, Python in GraalVM is 8.92x faster than CPython
by pawelmurias on Wednesday November 03, 2021 @01:48PM
(#29098046)
They are running on the commercial version of GraalVM.
There is a giant technological gap between Python and Truffle (the framework behind Python on GraalVM
CPython is a primitive interpreter while the other is a generating a hybrid JIT interpreter for both Python and CPython C extensions using Futamura projections.
I'm not anti-Oracle. I worked there (worked at Sun which was acquired), so I understand the mentality. I use GraalVM and it's pretty nice. But whenever I pick an Oracle product I always make sure I can dump it in a second if they decide they want to monetize me aggressively.
"the possibility to create native platform binaries using the Native Image, a managed execution mode to run, for example, NumPy extensions in a safe manner, and many more."
Lots of couching language about "experimental" and "possibility" though. So it seems new.
That's great, but on which benchmarks?
I would prefer a presentation like https://speed.pypy.org/ (according to which PyPy seems to be only half as fast; but this conclusion can change significantly depending on which benchmarks are used).
They point out that the geometric mean is 0.22, so PyPy is 4.5x faster.
Yes, than CPython, but I was talking about Graal Python; I would like to know what benchmarks they used and how they calculated the speedup factor.
https://www.graalvm.org/python/quickstart/
Oracle has a long history of suing customers etc. It's a pretty litigious company. It also tends to include nuanced details in their license agreements e.g. https://www.linkedin.com/pulse/oracle-java-release-17-now-fr...
I'm not anti-Oracle. I worked there (worked at Sun which was acquired), so I understand the mentality. I use GraalVM and it's pretty nice. But whenever I pick an Oracle product I always make sure I can dump it in a second if they decide they want to monetize me aggressively.
https://www.graalvm.org/python/quickstart/
"the possibility to create native platform binaries using the Native Image, a managed execution mode to run, for example, NumPy extensions in a safe manner, and many more."
Lots of couching language about "experimental" and "possibility" though. So it seems new.