James Hutchison <jamesghutchi...@gmail.com> added the comment:

See attached, which will open a zipfile that contains one file and reads it a 
bunch of times using unbuffered and buffered idioms. This was tested on windows 
using python 3.2

You're in charge of coming up with a file to test it on. Sorry.

Example output:

Enter filename: test.zip
Timing unbuffered read, 5 bytes at a time. 10 loops
took 6.671999931335449
Timing buffered read, 5 bytes at a time (4000 byte buffer). 10 loops
took 0.7350001335144043

----------
Added file: http://bugs.python.org/file25432/zipfiletest.py

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10376>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to