Click here to Skip to main content
15,894,343 members
Articles / Programming Languages / C++

Celero - Easy Benchmark Charts for your C++ Algorithms

Rate me:
Please Sign up or sign in to vote.
4.93/5 (11 votes)
7 Nov 2013Apache5 min read 26.9K   1.9K   32  
Discover how Celero makes benchmarking C++ code easy.
#ifndef _CELERO_RESULTTABLE_H_
#define _CELERO_RESULTTABLE_H_

#include <celero/Pimpl.h>
#include <string>

namespace celero
{
	///
	/// \class ResultTable
	///
	/// \author	John Farrier
	///
	class ResultTable
	{
		public:
			///
			/// Singleton 
			///
			static ResultTable& Instance();

			///
			///
			///
			void setFileName(const std::string& x);

			///
			///
			///
			void add(const std::string& groupName, const std::string& runName, const uint32_t runSize, const double usPerCall);

			///
			///
			///
			void print();

		private:
			///
			/// Default Constructor
			///
			ResultTable();

			///
			/// Default Destructor
			///
			~ResultTable();

			///
			/// \brief	Pimpl Idiom
			///
			class Impl;

			///
			/// \brief	Pimpl Idiom
			///
			Pimpl<Impl> pimpl;	
	};
}

#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Apache License, Version 2.0


Written By
Team Leader
United States United States
John Farrier is a professional C++ software engineer that specializes in modeling, simulation, and architecture development.

Specialties:

LVC Modeling & Simulation
Software Engineering, C++11, C++98, C, C#, FORTRAN, Python
Software Performance Optimization
Software Requirements Development
Technical Project and Team Leadership

Comments and Discussions