How does Python compare to ?
Thomas Wouters
thomas at xs4all.net
Mon Jul 31 19:11:56 EDT 2000
On Mon, Jul 31, 2000 at 10:36:00PM +0000, Paul Jackson wrote:
> Donn Cave, donn at u.washington.edu wrote:
> |> But it has to be partly the interpreter too.
> Good grief - does it ever. On my setup at least,
> Python startup is much worse than Perl.
> echo 'print "hi"' | perl
> echo 'print "hi"' | python
> In the same interval, python does some 196 milliseconds worth
> of stuff, including 52 open attempts, 34 stat attempts, 67
> sigaction calls, 12 fstat's, 20 close's, 27 brk's, ...
Okay, now try it with 'python -S'. This omits the 'site.py' import, which
itself requires a ton of other things. When using '-S', python is
consistently 10msec faster than perl, on my P2-something running Linux.
--
Thomas Wouters <thomas at xs4all.net>
Hi! I'm a .signature virus! copy me into your .signature file to help me spread!
More information about the Python-list
mailing list