std::priority_queue performance slower than VC10

std::priority_queue performance slower than VC10

Hi,

I've noticed that when I compile my project with ICL12 beta, the performance of thestandard library std::priority_queue class is degraded by20% on averagecompared to theVC10 compiler. It depends mainly on the data inserted, but sometimes it's as much as 70% slower.

With the test case attached, I get the following numbers:

> icl priorityqueue.cpp /O2 /EHsc

std::priority_queue average time taken:3.50583 seconds.

> cl priorityqueue.cpp /O2 /EHsc

std::priority_queue average time taken: 2.86942 seconds.

Running on Intel Core 2 Quad Q9550.

Thanks.

AnexoTamanho
Download priorityqueue.cpp1.32 KB
2 posts / novo 0
Último post
Para obter mais informações sobre otimizações de compiladores, consulte Aviso sobre otimizações.

I reproduced the problem; although I only see about 5% difference rather than 70%. Will investigate further and get back to you.

Thanks,
--mark

Deixar um comentário

Faça login para adicionar um comentário. Não é membro? Inscreva-se hoje mesmo!