std::priority_queue performance slower than VC10

std::priority_queue performance slower than VC10

Portrait de Ricardo Costa


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.


Fichier attachéTaille
Télécharger priorityqueue.cpp1.32 Ko
2 posts / 0 nouveau(x)
Dernière contribution
Reportez-vous à notre Notice d'optimisation pour plus d'informations sur les choix et l'optimisation des performances dans les produits logiciels Intel.

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


Connectez-vous pour laisser un commentaire.