lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Wed, Dec 9, 2009 at 12:45 PM, Mike Pall <mikelu-0912@mike.de> wrote:
> is that MSVC with the highest optimization setting has better
> heuristics than GCC -O3 (try -O2 plus selected -f options instead).

OK, quick summary (for nbody2.lua benchmark, N = 2e6)
19 sec MSVC lua (LfW)
23.3 sec GCC -O2
22.9 GCC -O2 -fomit-frame-pointer
21.1 GCC -O2 -fomit-frame-pointer -march=pentium4
20.5 GCC -O2 -fomit-frame-pointer -march=pentium4 -mfpmath=sse

A reasonably convergent series, but having to get specific about
architecture ... suprised that -fomit-frame-pointer did not make more
difference. Of course, any conclusions based on a single benchmark are
purely speculatiive ;)

GCC:
> gcc -v
Using built-in specs.
Target: i686-pc-mingw32
Configured with: ../gcc-4.1.2/configure --with-gcc --with-gnu-ld --with-gnu-as -
-prefix=C:/MinGW --enable-threads --disable-nls --enable-languages=c,c++ --disab
le-win32-registry --enable-fully-dynamic-string
Thread model: win32
gcc version 4.1.2

steve d.