From a C++/JS benchmark

Trass3r un at known.com
Sun Aug 7 11:03:06 PDT 2011


> Anyways, I've tweaked the GDC codegen, and program speed meets that of  
> C++ now (on my system).
>
> Implementation: http://ideone.com/0j0L1
>
> Command-line:
> gdc -O3 -mfpmath=sse -ffast-math -march=native -frelease
> g++ bench.cc -O3 -mfpmath=sse -ffast-math -march=native
>
> Best times:
> G++-32bit:  11400000 vps
> GDC-32bit:  11350000 vps
>
>
> Regards
> Iain

64Bit:

C++:
45010000
44270000
42740000
43900000
44680000
43490000
42390000

GDC:
42900000
44010000
44000000
44010000
44010000
44000000

GDC with -fno-bounds-check:
43280000
44440000
44420000
44340000
44440000
44450000


More information about the Digitalmars-d mailing list