Something that takes 1 second to run on Linux takes 45 seconds to run on AIX. I haven't dug directly into that code but as a test grabbed a small application that does very little from another SO question:
int main ( int argc, char **argv)
{
int i = 0;
std::vector<int> vec;
vec.push_back(6);
vec.push_back(-17);
vec.push_back(12);
for (i=0;i<100000;i++)
vec.push_back(i);
vec.erase(vec.begin() + 1);
return 0;
}
I have an old compiler (7.0.0.10) and I cannot belive how much slower the code runs vs. the same code on g++ 4.2.
Has anyone seen this before? It would take some work to upgrade the compiler. The sample code is about 20 times slower (real time) on a system with almost no load.
Update Reqested Box Specifications:
Number Of Processors: 8 Processor Clock Speed: 3504 MHz CPU Type: 64-bit Kernel Type: 64-bit Memory Size: 63232 MB Good Memory Size: 63232 MB Platform Firmware level: EM340_041 Firmware Version: IBM,EM340_041 Console Login: enable Auto Restart: true Full Core: true
Output on AIX:
real 0m0.52s
user 0m0.51s
sys 0m0.00s
Output on Linux:
0.00s real 0.01s user 0.00s system