This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
C++ Expression Template Benchmarks for GCC/Clang/Intel/PGI/MSVC
- From: Walter Landry <wlandry at caltech dot edu>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 14 Jun 2012 15:54:01 -0700 (PDT)
- Subject: C++ Expression Template Benchmarks for GCC/Clang/Intel/PGI/MSVC
Hello Everyone,
I thought you might be interested in some C++ expression template
benchmarks I have done.
http://www.wlandry.net/Projects/FTensor#Benchmarks
I found that GCC optimized the expression template code better than
unrolling expressions by hand. In fact, GCC was far, far better at
optimizing code with expression templates than any other compiler. I
ran the same benchmarks back in 2003, and GCC has improved quite a lot
since then.
Cheers,
Walter Landry
wlandry@caltech.edu