timing statistics for stl containers

?

=?iso-8859-1?q?Erik_Wikstr=F6m?=

hi,
does any one know a place to get performance statistics for stl
containers?

What for? Synthetic benchmarks are often close to useless in realworld
applications (except for the most trivial cases). Select the
containers you need based on the functionality they offer, if you then
get problems with performance use a profiler to locate the bottlenecks
and then start figuring out how to improve.

If you are clever and know the usage-patterns of your code there's
always a possibility to write smart code that maximizes performance
but often it will not give any noticeable difference for the user and
in return it will usually give you unmaintainable code.
 
M

Mark P

CMOS said:
hi,
does any one know a place to get performance statistics for stl
containers?

CMOS

The standard specifies complexity guarantees on many of the non-trivial
operations. You can usually browse the library implementations if you
locate the correct include directories on your system. If you need real
world numbers measured in seconds, you'll almost certainly have to
measure these yourself.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,294
Messages
2,571,511
Members
48,206
Latest member
EpifaniaMc

Latest Threads

Top