Subject: Re: [boost] Request For a feature - Templated virtual functions
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2009-02-13 04:33:44


Gokulakannan Somasundaram wrote:

> Attaching the files..

Testing with GCC 4.3.2, -O3 -march=native -fomit-frame-pointer on an
Intel Core 2 Duo.

My results are:

Time elapsed: 2621 mu.s
11000000
Time elapsed: 3136 mu.s
22000000
Time elapsed: 2250 mu.s
5000000

Hence, switch is slightly faster.

Why do you test two times for the variant by the way?