Free Web Hosting Provider - Web Hosting - E-commerce - High Speed Internet - Free Web Page
Search the Web

C/C++ Program Perfometer
                  Visitors : 12823 since Mar 05, 2002

                                   
        [ Last Modification : 2004/07/10]
        ---------------------------------
  Here is C/C++ Program Perfometer.
  The program enables to get C/C++ program performance
      for any metrics (for instance, uclocks, rusage etc).
  The algorithm has been written by Alex Vinokur.
  Programming Language : C++.
  Any and all comments would be appreciated.

        Alex Vinokur
        -----------------------------------
        alexvn@go.to
        http://up.to/alexvn
        -----------------------------------

        ----------------------------------------------
        C/C++ Program Perfometer Mailing List Archives
        C/C++ Program Perfometer Newsgroup    Archives
        ----------------------------------------------


  Content.
  1. Algorithm
  2. Classes
  3. Program Files
  4. Compiling
  5. Running (Log Files)
  6. Download

====================================================
=================== 1. Algorithm ===================
                               
The program enables to get C/C++ program performance for any metrics 
(for instance : uclocks, rusage-metrics, metrics defined by user etc.)
Latest version description: http://article.gmane.org/gmane.comp.lang.c++.perfometer/39
====================================================

====================================================
================ 2. List Of Classes ================
Main classes used in the algorithm are as following :
  1. ClassResultsFunc
  2. ClassResultsTimer<COST>
  3. ClassResultsMeter<STATE, COST, METRICS>
  4. ClassRunCost<STATE, COST, METRICS>
  5. ClassPerfoTimer<STATE, COST, METRICS>
  6. ClassPerfoMeter<STATE, COST, METRICS>
  7. BasicClassMeasurementCollection
  8. ClassMeasurementCollection<STATE, COST, METRICS>
  9. ClassManager
====================================================

==========================================================================
============================= 3. Program Files ===========================
The algorithm contains the following files (Demo version):
  1. macro.h Various Macro
  2. common.h Common Function etc
  3. user.h User-Specialized Function Declaration
  4. pfmeter.h Definition of Common Classes
  5. pfmeter2.h Implementation of Common Template Classes
  6. pfmeter.c Implementation of Common (Non-Template) Classes
  7. adapt.h Definition of User-Related Classes
  8. adapt.c Implementation of User-Related Classes
  9. demo.h Declaration of Measured/Compared Functions
  10. demo.c Implementation of Measured/Compared functions
  11. demo2.c Implementation of Measured/Compared functions
  12. main.c Main Program
Note. Latest version of the files can be dowloaded ====================================================

====================================================
==================== 4. Compiling ==================
//#########################################################
//------------------- System & Compiler  ------------------
Windows 2000, UNIX
GNU gcc/g++/gpp :  version 3.x

//-------------------- Compiling : BEGIN ------------------
Using makefile
//-------------------- Compiling : END --------------------

====================================================
===================== 5. Running ===================
//#########################################################
//-------------------- Running : BEGIN --------------------
%a.exe -h
See results in Log File
%a.exe -s
See results in Log File
%a.exe -d
See results in Log File
%a.exe -m
See results in Log File
%a.exe
See results in Log File
%a.exe -i 70000 -f 0.23 -e 11 -p 2500
See results in Log File
//-------------------- Running : END ----------------------

====================================================
===================== 6. Download ==================
//#########################################################

http://alexvn.freeservers.com/s1/zip_dir/perfometer.zip
http://sourceforge.net/projects/cpp-perfometer
http://www.simtel.net/pub/pd/60044.shtml       
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=3512&lngWId=3       
http://home.barak-online.net/alexvn/s2/pf/pmeter22.zip 

http://groups.google.com/groups?th=9560b3b3760966fe (Source)
http://groups.google.com/groups?as_ugroup=misc.test&as_usubject=performance&as_uauthors=vinokur (Raw run logs)
http://alexvn.freeservers.com/s1/perfo/tests/pftests.htm (Test results)