Re: benchmark
- From: Steven D'Aprano <steve@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: 07 Aug 2008 08:39:48 GMT
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
.
- Follow-Ups:
- Re: benchmark
- From: Angel Gutierrez
- Re: benchmark
- References:
- benchmark
- From: Jack
- Re: benchmark
- From: Stefan Behnel
- Re: benchmark
- From: Steven D'Aprano
- Re: benchmark
- From: alex23
- benchmark
- Prev by Date: Re: .cpp to .pyd
- Next by Date: Re: random numbers according to user defined distribution ??
- Previous by thread: Re: benchmark
- Next by thread: Re: benchmark
- Index(es):