My script.
a.clarke11
a.clarke11 at pop.ntlworld.com
Sat Dec 7 04:56:08 EST 2002
I got:
My hands hurt! It took me 3.0 seconds to write I am a bad computer 1000
times, at
333.333333333 loops per second!!!
I'll never misbehave again... :(
But I used a Mac , G4, OS9, who needs Gates when there are no walls
Tony Clarke
Tetsuo wrote:
> def PunishmentBenchmark():
> import time
>
> a = time.clock()
>
> b = 1000
> h = '"I am a bad computer"'
> s = "I'll never misbehave again... :("
>
> for i in range(b):
> print i, ":( I am a bad computer"
>
> d = time.clock()
>
> e = d - a
>
> print "My hands hurt! It took me", e, "seconds to write", '"I am a
> bad computer"', b, "times, at"
> print b/e, "loops per second!!!\n\r"
> print "I'll never misbehave again... :("
>
> PunishmentBenchmark()
>
> My output, with interactive window completely hidden by script window:
>
> 7.85588503567 seconds, 127.293105164 loops per second.
>
> With windows tiled:
>
> 21.2027196194 seconds, 47.163760968 loops per second.
>
> ActivePython 2.2.1 Build 222, 466 MHz, Windows 2000.
>
> How does your system perform?
More information about the Python-list
mailing list