This is compared to the standard (CPython) implementation. PyPy is about 7 times faster, often uses less memory and generally optimizes pythonic code better, so would improve all three metrics.
http://speed.pypy.org/
And ZipPy (Python on the JVM) handily beats PyPy on most benchmarks but obviously doesn't beat Java on the JVM for idiomatic code due to the better data structures available in Java Collections vs. Python's standard library.
Re:Python 3 vs. Java
by piker on Saturday April 04, 2015 @06:57PM
(#9322511)
I love Python, and was eager to read some great measurements for 3.4, but I am having trouble comprehending this chart. I read the chart:
Python 3 used what fraction? used how many times more?
Time-used |- |--- 25% median 75% ---| -|
(Elapsed secs)
± ± 5× 27× 51× 77× 77×
to indicate that even the 25th percentile Python application required 5 times the amount of time to complete as its Java counterpart. It seems that only the pidigits implementation required less time to complete. How does that lead to the conclusion that Python is -approximately- faster?
Re:Python 3 vs. Java
by bsznjyewgd on Sunday April 05, 2015 @02:10AM
(#9323282)
It's just poor wording. The "approximately" isn't "yes, it's approximately faster" but "here are the numbers -- approximately". Notice that it says the same thing when you reverse the Python vs Java comparison.
Re:Python 3 vs. Java
by igouy on Sunday April 05, 2015 @03:01AM
(#9323361)
(Also see the homepage)
tl;dr
Measurement is highly specific -- the time taken for
this benchmark task, by this toy program, with this
programming language implementation, with these options,
on this computer, with these workloads.
Same toy program, same computer, same workload -- but
much slower.
Measurement is not prophesy.
Re:Python 3 vs. Java
by collyw on Sunday April 05, 2015 @01:31PM
(#9324718)
There are a load of database related tasks I would love to benchmark, but I simply don't have the time. Posting a comment like that here, someone will often know of a similar benchmark and reply with it.
Python 3 used what fraction? used how many times more?
Time-used |- |--- 25% median 75% ---| -| (Elapsed secs)
± ± 5× 27× 51× 77× 77×
to indicate that even the 25th percentile Python application required 5 times the amount of time to complete as its Java counterpart. It seems that only the pidigits implementation required less time to complete. How does that lead to the conclusion that Python is -approximately- faster?
Edit: fixed chart.
2 : Approximately - Are the Python 3 programs faster?