[Bug c++/15036] [3.4 regression] Performance and code size regression compared to 3.3
digitalmastrmind at hotmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Sep 16 18:40:00 GMT 2004
------- Additional Comments From digitalmastrmind at hotmail dot com 2004-09-16 18:40 -------
I was benchmarking STL containers out of curiosity and it turned out that
inserting keys in a set/map is up to 70% slower with 3.4.x than it was with
3.3.4...
Adding 1 milion keys to set<int> / hash_set<int> / map<int>:
1.10 / 0.68 / 1.11 bilion ticks with 3.2.2 (P233MMX / -O2 -march=pentium)
1.09 / 0.72 / 1.11 with 3.3.4
1.54 / 0.94 / 1.90 with 3.4.1
1.52 / 0.93 / 2.01 with 3.4.2
Sample loop used for measurement: (using rdtsc to estimate the tick count,
accuracy is within 1-5%)
for(int a=0; a < 5000000; a+=5)
intSet.insert(a);
While this is not realistic every day usage, it does appear to be
representative of this issue and I am somewhat surprised to see it as being
only a normal-normal issue.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15036
More information about the Gcc-bugs
mailing list