public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: morten@wtf.dk
To: gcc-gnats@gcc.gnu.org
Subject: libstdc++/7076: iostreams very slow compared with earlier gcc versions
Date: Wed, 19 Jun 2002 06:26:00 -0000	[thread overview]
Message-ID: <20020619123955.25310.qmail@sources.redhat.com> (raw)


>Number:         7076
>Category:       libstdc++
>Synopsis:       iostreams very slow compared with earlier gcc versions
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 19 05:46:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Morten Brix Pedersen
>Release:        gcc-3.1
>Organization:
>Environment:

>Description:
'cout' is very slow in g++ 3.1 compared with g++ 2.95.4 (Debian prerelease).

My results with 'time', gcc 2.95.4:

mbp:~/testcode$ time ./stream > /dev/null

real    0m1.886s
user    0m0.940s
sys     0m0.000s

My results with gcc 3.1.0:

mbp:~/testcode$ time ./stream-3.1 > /dev/null

real    0m37.636s
user    0m18.520s
sys     0m0.010s


>How-To-Repeat:
#include <iostream>

int main(int argc, char** argv) 
{
    for(int i=0; i< 1500000; i++)
        std::cout << i << '\n';
} 
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


             reply	other threads:[~2002-06-19 12:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-19  6:26 morten [this message]
2003-02-07  2:56 Joe Buck
2003-02-20 18:28 bkoz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020619123955.25310.qmail@sources.redhat.com \
    --to=morten@wtf.dk \
    --cc=gcc-gnats@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).