Why is this question so beloved? Re: Is python really slow?
Ng Pheng Siong
ngps at vista.netmemetic.com
Wed May 22 12:53:14 EDT 2002
According to Jeremy Yallop <jeremy at jdyallop.freeserve.co.uk>:
> $ time python -c 'print 2**10000'
>
> [answer snipped]
>
> real 0m0.226s
> user 0m0.070s
> sys 0m0.010s
>
> $ time clisp -q -x '(expt 2 10000)'
>
> [answer snipped]
>
> real 0m0.038s
> user 0m0.030s
> sys 0m0.000s
$ time python -c 'print 2**10000'
real 0m0.347s
user 0m0.044s
sys 0m0.023s
$ lisp -noinit
CMU Common Lisp 18d, running on vista.netmemetic.com
* (time (expt 2 10000))
Compiling LAMBDA NIL:
Compiling Top-Level Form:
Evaluation took:
0.0 seconds of real time
5.0e-6 seconds of user run time
5.0e-6 seconds of system run time
0 page faults and
0 bytes consed.
(No idea if the two timings are comparable.)
--
Ng Pheng Siong <ngps at netmemetic.com> * http://www.netmemetic.com
More information about the Python-list
mailing list