By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,784 Members | 2,933 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,784 IT Pros & Developers. It's quick & easy.

Looking for STL benchmark code

P: n/a
Hi,

I'm currently looking a porting our Windows Codewarrior based C++ projects
to MinGW and/or Visual Studio and I'm just wondering if there is a
'standard' suite of benchmark programs I can download and compile on the
various environments that will give me an idea on the relative performance
of each STL?

For example - a test program that will run through, say, appending one
character to a string 1000000 times, copying vectors, pushing and popping on
deques and lists, that sort of thing. What other things should I be looking
at to stress-test the STL?

Any pointers to anything that exists already will be most helpful.

Thanks.

--
Regards,
Steve.

Jul 23 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Steve wrote:
...I'm just wondering if there is a
'standard' suite of benchmark programs I can download and compile on the
various environments that will give me an idea on the relative performance
of each STL?

For example - a test program that will run through, say, appending one
character to a string 1000000 times, copying vectors, pushing and popping on
deques and lists, that sort of thing. What other things should I be looking
at to stress-test the STL?


When you say "STL," I'm assuming you literally mean the STL - that is,
the Standard Template Library - and not the C++ Standard Library. If
so, the traditional benchmark is the Stepanov benchmark, designed by
the Alex Stepanov (the original creator of the STL) to measure
abstraction penalties. It's a little dated, and you need to update it
to standard C++ (it was written in the mid-90's), but still quite
interesting. You can find a version here:

http://www.physics.ohio-state.edu/~w.../stepanov.html

Or google for "Stepanov benchmark"

Best regards,

Tom

Jul 23 '05 #2

P: n/a

Steve wrote in message http://groups.google.com/group/comp....b25bc6a6b7296e
Hi,

I'm currently looking a porting our Windows Codewarrior based C++ projects
to MinGW and/or Visual Studio and I'm just wondering if there is a
'standard' suite of benchmark programs I can download and compile on the
various environments that will give me an idea on the relative performance
of each STL?

For example - a test program that will run through, say, appending one
character to a string 1000000 times, copying vectors, pushing and popping on
deques and lists, that sort of thing. What other things should I be looking
at to stress-test the STL?

Any pointers to anything that exists already will be most helpful.

Thanks.

--
Regards,
Steve.

Look at C/C++ Program Perfometer
http://lists.sourceforge.net/lists/l...rfometer-users
that contains various testsuites ( http://lists.sourceforge.net/lists/l...rfometer-users )

Alex Vinokur
email: alex DOT vinokur AT gmail DOT com
http://mathforum.org/library/view/10978.html
http://sourceforge.net/users/alexvn


Aug 22 '05 #3

P: n/a

"Alex Vinokur" wrote in message news:de**********@reader.greatnowhere.com...
[snip]
Look at C/C++ Program Perfometer
http://lists.sourceforge.net/lists/l...rfometer-users
that contains various testsuites ( http://lists.sourceforge.net/lists/l...rfometer-users )

http://groups.google.com/group/micro...be35e504b0c84b
[snip]

--
Alex Vinokur
email: alex DOT vinokur AT gmail DOT com
http://mathforum.org/library/view/10978.html
http://sourceforge.net/users/alexvn

Aug 22 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.