From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17556 invoked by alias); 28 May 2002 20:58:53 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 17502 invoked from network); 28 May 2002 20:58:50 -0000 Received: from unknown (HELO mailgate5.cinetic.de) (217.72.192.165) by sources.redhat.com with SMTP; 28 May 2002 20:58:50 -0000 Received: from web.de (fmomail02.dlan.cinetic.de [172.20.1.46]) by mailgate5.cinetic.de (8.11.2/8.11.2/SuSE Linux 8.11.0-0.4) with SMTP id g4SKwnX18401 for gcc@gcc.gnu.org; Tue, 28 May 2002 22:58:49 +0200 Date: Tue, 28 May 2002 15:04:00 -0000 Message-Id: <200205282058.g4SKwnX18401@mailgate5.cinetic.de> MIME-Version: 1.0 Organization: http://freemail.web.de/ From: Joerg Beyer To: gcc@gcc.gnu.org Subject: Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-SW-Source: 2002-05/txt/msg02700.txt.bz2 Hi, I did some performance comparision of gcc 2.95.3 and gcc 3.1, each with it's own libstdc++ and STLPort and a set of different compiler flags. 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 and so on. The results are here: http://cbench.sourceforge.net/log.html you could get the source I used to gather the results here: http://sourceforge.net/projects/cbench/ Feel free to contact me if you have questions. Maybe this helps Joerg