benchmark

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Thu Aug 7 04:39:48 EDT 2008


On Thu, 07 Aug 2008 00:44:14 -0700, alex23 wrote:

> Steven D'Aprano wrote:
>> In other words, about 20% of the time he measures is the time taken to
>> print junk to the screen.
> 
> Which makes his claim that "all the console outputs have been removed so
> that the benchmarking activity is not interfered with by the IO
> overheads" somewhat confusing...he didn't notice the output? Wrote it
> off as a weird Python side-effect?

Wait... I've just remembered, and a quick test confirms... Python only 
prints bare objects if you are running in a interactive shell. Otherwise 
output of bare objects is suppressed unless you explicitly call print.

Okay, I guess he is forgiven. False alarm, my bad.


-- 
Steven



More information about the Python-list mailing list