473,398 Members | 2,427 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Looking for STL benchmark code

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
3 2988
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

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

"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Harry Koh | last post by:
I would like to benchmark some scripts by - measuring the time a page loads - counting the number of connections to MySQL by page - ... So that, i'm looking for a software beside Apache (for...
16
by: Duncan Lissett | last post by:
Is there a Python implementation of Martin Richards benchmark Bench? Be interesting to add it to these www.lissett.com/ben/exp/bench1.htm
15
by: Duncan Lissett | last post by:
I'd appreciate any suggestions on how to make faster Python implementations of Richards benchmark. Perhaps there are obvious problems that can be corrected? http://www.lissett.com/ben/bench1.htm
0
by: julio | last post by:
Hello Guys, AlphaServer EV6 processor 500mhz/1Gm memory with Linux mysql> SELECT BENCHMARK(1000000,ENCODE("hello","goodbye")); +----------------------------------------------+ |...
2
by: Jan Schäfer | last post by:
Hi all, I want to measure Compiler performance in different C++ abstraction levels on several architectures. I am writing my own benchmark code, implementing the main algorithm I use in my...
2
by: Matthijs van Waveren | last post by:
"Your opportunity to be a RECOGNIZED EXPERT in the HPC Community" The SPEC High Performance Group is seeking candidates for a benchmark suite based on Message Passing Interface (MPI)...
74
by: aruna.mysore | last post by:
Hi all, I have a simple definitioin in a C file something like this. main() { char a; ....... int k; }
16
by: Jorge | last post by:
Webkit r34469 vs. Opera 9.50 : 3.00x as fast 6339.6ms(Opera) 2109.8ms (Webkit) ----- FF3.0 (final) vs. Opera 9.50 : 1.94x as fast 6339.6ms (Opera) 3269.6ms (FF3)
0
by: Jon Harrop | last post by:
A JVM developer called John Rose from Sun Microsystems recently claimed on a mailing list that Sun's JVM offers C-like performance whereas .NET only offers performance comparable to old JVM...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.