[pypy-dev] A simple file reading is 2x slow wrt CPython

Ozan Çağlayan ozancag at gmail.com
Mon Jun 29 15:54:58 CEST 2015


Hi,

Oh It's my bad, I though that readlines iterates over the file, I'm
always confusing this.

But still the new results are interesting:

time bin/pypy testfile.py
338695509

real 0m0.591s
user 0m0.494s
sys 0m0.096s

time python testfile.py
338695509

real 0m0.560s
user 0m0.495s
sys 0m0.064s

So PyPy is still a little slower here wrt to CPython. This is on warm cache too.

Anyways, thanks for pointing out the readlines() stuff :)


More information about the pypy-dev mailing list