[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] ANCI-C vs Gnuradio/C++ speeeed

From: Eric Blossom
Subject: Re: [Discuss-gnuradio] ANCI-C vs Gnuradio/C++ speeeed
Date: Sun, 14 May 2006 08:54:19 -0700
User-agent: Mutt/1.5.9i

On Sun, May 14, 2006 at 09:40:16AM -0400, Achilleas Anastasopoulos wrote:
> I run the following simple test, compiled with
> g++ test.cc -o test
> and I got the following results.
> I see a 4-fold speed reduction using STL.
> What am I doing wrong?
> Achilleas

You're not using the "standard level of optimization" -O2


address@hidden tmp]$ g++ -O2 test.cc -o test
address@hidden tmp]$ time ./test 100000 1

real    0m1.797s
user    0m1.792s
sys     0m0.004s
address@hidden tmp]$ time ./test 100000 2

real    0m1.797s
user    0m1.796s
sys     0m0.000s

reply via email to

[Prev in Thread] Current Thread [Next in Thread]