[pypy-dev] LLVM backend

Carl Friedrich Bolz cfbolz at gmx.de
Sun Feb 6 23:34:05 CET 2005

Hi Alex,

On 6 Feb 2005 22:28:02 +0100, Alexander Kellett wrote:
> i'm interested in the performance of :
>    d=0
>    1000000000.times {
>      d = d + 1
>    }
>    puts d
> as in, just a loop that goes from d=0 to d=1000000000 and prints d out 
> at the end.

this wouldn't prove anything since LLVM will just omptimize everything away.
It would (if it were already possible to use a print statement) lead to
something which is equivalent to

puts 1000000000

and would not provide any performance measurement.


Carl Friedrich

More information about the Pypy-dev mailing list