News for hackers. Stuff that matters.
Re:Python 3 vs. Java by BoardsOfCanada on Saturday April 04, 2015 @06:07PM (#9322378)
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/
Re:Python 3 vs. Java by lern_too_spel on Sunday April 05, 2015 @02:37PM (#9324905)
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?

Edit: fixed chart.

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 @02:58AM (#9323359)
Hmmm.

2 : Approximately - Are the Python 3 programs faster?

Re:Python 3 vs. Java by jszymborski on Saturday April 04, 2015 @05:46PM (#9322331)
I always wish these benchmarks had a "Conclusion" or "Discussion" section...
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 jonrx on Saturday April 04, 2015 @06:53PM (#9322502)
Re:Python 3 vs. Java by igouy on Sunday April 05, 2015 @03:03AM (#9323367)
Particularly: "Last words -- A good starting point"
Re:Python 3 vs. Java by aceperry on Sunday April 05, 2015 @02:06AM (#9323276)
I would be very interested to see performance with networking types of code. That would be of great interest to this audience.
Re:Python 3 vs. Java by igouy on Sunday April 05, 2015 @11:56AM (#9324373)
So design the tasks, make the measurements, and publish your results.
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.