Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
<Summary> Simple C/C++ Perfometer: Splitting string into vector of vectors (Versions 1.x)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post will appear after it is approved by moderators
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Alex Vinokur  
View profile  
 More options Apr 20 2005, 12:13 pm
From: Alex Vinokur <ale...@users.sourceforge.net>
Date: Wed, 20 Apr 2005 19:13:34 +0300
Local: Wed, Apr 20 2005 12:13 pm
Subject: <Summary> Simple C/C++ Perfometer: Splitting string into vector of vectors (Versions 1.x)
###############
### Summary ###
###############

=========================================
* Performance
* Comparative Performance Measurement
-----------------------------------------
* Tool     : Simple C/C++ Perfometer
* Algorithm: Splitting string into vector of vectors
* Language : C++
* Version  : S2VV-1.0
-----------------------------------------
* Environment  : Windows 2000 Professional
                 Intel(R) Celeron(R) CPU 1.70 GHz
                 Cygwin, Mingw32 interface, Djgpp
* Compilers    : GNU g++ 3.x, Microsoft C++ 13.00.9466 (Unmanaged)
* Optimization : No optimization
=========================================

Testing "Splitting string into vector of vectors"
with using Simple C/C++ Perfometer.
---------------------------
* http://groups-beta.google.com/group/perfo/msg/f3c775cf7e3cdcf0
* http://article.gmane.org/gmane.comp.lang.c++.perfometer/118
* http://permalink.gmane.org/gmane.comp.lang.c++.perfometer/118
* http://comments.gmane.org/gmane.comp.lang.c++.perfometer/118
* http://cache.gmane.org/gmane/comp/lang/c++/perfometer/118
---------------------------

String size = 1000
=== String-A:    1000 lines,        0 fields
=== String-B:       1 line,         0 fields
=== String-C:      33 lines,      213 fields
=== String-D:       9 lines,       32 fields

Cygwin, GNU g++ 3.3.3
Number of repetitions : 25
CLOCKS_PER_SEC        : 1000
=========================================================================== ========
|                     Testsuite                       |   Units for String case   |
|-----------------------------------------------------|-------------------- -------|
| Code      :               Name                      |   A  :   B  :   C  :   D  |
|-----------------------------------------------------|-------------------- -------|
| Unix-C-01 : Function strsep()                       | 2083 :  614 :  784 :  137 |
| CPP-01    : std::getline, std::istream_iterator     | 4737 :  263 : 1832 : 1315 |
| CPP-02    : istream::getline, std::istream_iterator | 4443 :   16 : 1652 : 1071 |
| CPP-03    : for-loop, string::find_first_of         | 2243 :  764 :  821 :  150 |
=========================================================================== ========

Mingw, GNU g++ 3.3.3
Number of repetitions : 25
CLOCKS_PER_SEC        : 1000
=========================================================================== ========
|                     Testsuite                       |   Units for String case   |
|-----------------------------------------------------|-------------------- -------|
| Code      :               Name                      |   A  :   B  :   C  :   D  |
|-----------------------------------------------------|-------------------- -------|
| CPP-01    : std::getline, std::istream_iterator     |  471 :   20 :  127 :   63 |
| CPP-02    : istream::getline, std::istream_iterator |  427 :    6 :  103 :   43 |
| CPP-03    : for-loop, string::find_first_of         |  234 :   73 :   63 :    6 |
=========================================================================== ========

Djgpp, GNU gpp 3.4.1
Number of repetitions : 300
CLOCKS_PER_SEC        : 91
=========================================================================== ========
|                     Testsuite                       |   Units for String case   |
|-----------------------------------------------------|-------------------- -------|
| Code      :               Name                      |   A  :   B  :   C  :   D  |
|-----------------------------------------------------|-------------------- -------|
| Unix-C-01 : Function strsep()                       |  183 :   33 :   68 :   10 |
| CPP-01    : std::getline, std::istream_iterator     |  250 :    5 :   78 :   10 |
| CPP-02    : istream::getline, std::istream_iterator |  241 :    0 :   76 :   13 |
| CPP-03    : for-loop, string::find_first_of         |  178 :   31 :   73 :   11 |
=========================================================================== ========

Microsoft C++ 13.00.9466 (Unmanaged)
Number of repetitions : 25
CLOCKS_PER_SEC        : 1000
=========================================================================== ========
|                     Testsuite                       |   Units for String case   |
|-----------------------------------------------------|-------------------- -------|
| Code      :               Name                      |   A  :   B  :   C  :   D  |
|-----------------------------------------------------|-------------------- -------|
| CPP-01    : std::getline, std::istream_iterator     |  437 :   36 :  186 :   60 |
| CPP-02    : istream::getline, std::istream_iterator |  443 :   20 :  150 :   50 |
| CPP-03    : for-loop, string::find_first_of         |  250 :  147 :  127 :   26 |
=========================================================================== ========

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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google