This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

comparing the runtime performance of different gcc's, flags and libstdc++'s

Hi all,

I compared the runtime of ~50 Testcases of C++ code, mainly small STL 
using synthetic testcases with gcc 2.95.3 and the current 3.1. I used
gcc's libstdc++ and STLPort as well as a different compile time Flags
(from nothing to "-O3 -fexpensive-optimizations -fpeephole -march=i686 
-fgcse -fomit-frame-pointer -funroll-loops").

to give you an idea: each testcase is a function that runs in less
than a second (usually 10th or 1000th times per second). The testcase
is called as long as a given time (e.g. 1 minute) is not over. The
number of calls to the testcase is counted (the loop counter), higher
loop counts are better results. The loop counts are compared for 
each set of compile options.

Testcase focus on STL use, like reverse a std::list, appending
chars to a std::string, sorting a vector<int> and so on.

I dont want to go into endless flamewars, but if you think the results
(including the code that produced them) may help to improve gcc, then 
I could share them.


ps: please cc me, since I am not on the list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]