Boost logo

Boost :

From: Chris Frey (cdfrey_at_[hidden])
Date: 2005-09-17 14:39:33


On Mon, Sep 12, 2005 at 06:25:18PM +0200, David Abrahams wrote:
>
> Last week, we were considering using the parameter library in some
> client software that demands high performance (they are doing
> massively parallel statistical analysis), so I sat with Matthias
> Troyer, an expert in high-performance C++, and developed the test
> that's now checked in at libs/parameter/test/efficiency.cpp. The test

Interesting. Thanks for sharing it.

> We'd be very interested in seeing results produced with other
> compilers and/or platforms at the highest optimization levels.

Here's a test from a machine I have handy:

Testers:
  Chris Frey

Date:
  2005-09-17

Compiler:
  Linux kernel 2.4.27
  gcc version 3.3.6 (Gentoo 3.3.6, ssp-3.3.6-1.0, pie-8.7.8)

Command lines:
  g++ -c -o efficiency.o -ftemplate-depth-100 -funroll-loops \
      -O3 -finline-functions -Wno-inline -DNDEBUG efficiency.cpp

  g++ -o efficiency.exe efficiency.o -Wl,--strip-all

Machine:
  IBM Thinkpad 770Z, running on AC power
  Intel Pentium II 366Mhz

Timings:
  Run #1 results discarded per standard practice

  Run #2
  plain time: 6.42
  named parameter time: 7.34

  Run #3
  plain time: 6.42
  named parameter time: 7.34

- Chris


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk