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 E.g., [EMAIL PROTECTED] tmp]$ g++ -O2 test.cc -o test [EMAIL PROTECTED] tmp]$ time ./test 100000 1 real 0m1.797s user 0m1.792s sys 0m0.004s [EMAIL PROTECTED] tmp]$ time ./test 100000 2 real 0m1.797s user 0m1.796s sys 0m0.000s _______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio