[RFC] New feature: --batch to accept command sequences from stdin (or file)
Michael Ellerman
michael at ellerman.id.au
Thu Jun 22 02:00:44 BST 2006
On 6/22/06, Diwaker Gupta <diwaker.lists at gmail.com> wrote:
> > Originally I was more thinking the language interpreter startup time,
> > which I expected to be the problem. In PII 400Mhz/512M/W2k/Cygwin this
> > command
> >
> > $ time python -c "exit;"
> >
> > takes average of 1.5 sec (real). To run 3 commands in series, it would
> > take total:
>
> Yikes! On all of my boxes, this takes roughly 100 times less. What
> _is_ the configuration of your machine?
>
> > 1.5 x 3
>
> If you run these commands right after one another, I'm not sure the
> time grows linearly. A lot of the runtime files may be available in
> the file buffer cache. Disk locality might speed up further reads. I
> know thats really not the problem here, but I just wanted to clarify
> this particular point.
For example:
$ time python -c "exit"
real 0m1.462s
user 0m0.013s
sys 0m0.010s
$ time python -c "exit"
real 0m0.018s
user 0m0.012s
sys 0m0.004s
cheers
More information about the bazaar
mailing list