The only difference to your programm is, that I wrote down the
dictionary (x,x) for x in range(1000). So this is not done at runtime.
I didn't use the sum, when doing the same like you (with your programm
posted here) I get:
Before:
real 0m12.776s
user 0m12.245s
sys 0m0.041s
After 'sed -i "s|it++|++it|g" lib/builtin.hpp':
real 0m11.340s
user 0m10.894s
sys 0m0.041s
This was the third round running time ./a.out, not directly the first
one.
-> 11% faster
$ gcc --version
gcc (GCC) 4.4.2 20091027 (Red Hat 4.4.2-7)
I always use the default CFLAGS by shedskin. -O2 -pipe -Wno-deprecated
All fedora programms are compiled with:
$ rpm --eval %optflags
-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-
protector --param=ssp-buffer-size=4 -m64 -mtune=generic
Maybe you could add some to the FLAGS file.
Don't know why it's slower on your system... Here it's always faster.
I also have 64bit, and you atm?