
David Abrahams wrote:
Joaquín Mª López Muñoz <joaquin@tid.es> writes:
I had to modify the test to eliminate undefined behavior and make sure dead code elimination didn't kick in (enclosed). Results:
GCC 3.4.4: Test 1 discarded
Test 2 with operator library: 1.469 with iterator library: 2.282
Test 3 with operator library: 1.438 with iterator library: 2.297
GCC 4.0.2: Test 1 discarded
Test 2 with operator library: 1.468 with iterator library: 1.579
Test 3 with operator library: 1.453 with iterator library: 1.563
MSVC 7.1 Test 1 discarded
Test 2 with operator library: 1.219 with iterator library: 1.187
Test 3 with operator library: 1.203 with iterator library: 1.188
Sorry for being dumb but is this compile time or run time? Thomas -- Thomas Witt witt@acm.org