Re: PERL as a first programming language?

Bill Janssen (janssen@parc.xerox.com)
27 Jul 1994 20:50:19 GMT

In article <ROLFL.94Jul27101646@ask.uio.no> rolf.lindgren@psykologi.uio.no (Rolf Marvin B{\o}e Lindgren) writes:

In article <CtKGMr.BJ6@taligent.com> logan@taligent.com (Logan Shaw) writes:
> > 486dx33:
>
> $ time perl -e 'print "1", "0" x 10001, "\n";'
> Real 0.5
> User 0.0
> System 0.1
Dec ALPHA:

~ ask-1>time perl -e 'print "1", "0" x 10001, "\n";'
real 0.1
user 0.0
sys 0.0

Sun SparcStation-10:

% time python -c 'a = pow(2L, 10001)'
0.1u 0.0s 0:00 104% 0+436k 0+0io 0pf+0w
% time python -c 'print pow(2L, 10001)'
39901262[...digits omitted...]193418752L
5.0u 0.0s 0:05 93% 0+532k 1+9io 0pf+0w

or:

% /usr/5bin/time python -c 'a = pow(2L, 10001)'

real 0.3
user 0.1
sys 0.0
% /usr/5bin/time python -c 'print pow(2L, 10001)'
39901262[...]585193418752L

real 6.0
user 5.0
sys 0.1

Bill

--
 Bill Janssen  <janssen@parc.xerox.com> (415) 812-4763  FAX: (415) 812-4777
 Xerox Palo Alto Research Center, 3333 Coyote Hill Rd, Palo Alto, CA  94304
 URL:  ftp://parcftp.parc.xerox.com/pub/ilu/misc/janssen.html