bug-gplusplus
[Top][All Lists]
Advanced

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

6 times slower on Linux than xp


From: Chen Shizhong-FCHN289
Subject: 6 times slower on Linux than xp
Date: Mon, 13 Jun 2011 16:59:12 +0800

Hi,

<<main.cpp>> <<R_Exception.hpp>>

When run above code on linux (Ubuntu 10.04, g++4.4.3), the output is:

So costs 179sec.

When run it on XP (same PC, g++4.4.1), the output is:

And it only costs 29sec.

The cpu is Pentium dual-core address@hidden

I doubt the big performance gap is from the compiler. Is it a bug of Linux G++?

Thanks if you can help,
Chen

(1 more thing, I noticed above code occupied 2 cores on xp - each cost ~50%, but linux focus on 1 core & achieve 100% utilization on that core…)

Attachment: main.cpp
Description: main.cpp

Attachment: R_Exception.hpp
Description: R_Exception.hpp


reply via email to

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