Containers push back benchmark
#include <deque>
#include <list>
#include <vector>
template <typename T>
{
protected:
T container;
};
{
container.push_back(0);
}
BENCHMARK_FIXTURE(ContainerFixture<std::vector<int>>,
"std::vector<int>.push_back()")
{
container.push_back(0);
}
{
container.push_back(0);
}
Benchmark running context.
virtual void Initialize(Context &context)
Initialize benchmark.
virtual void Cleanup(Context &context)
Cleanup benchmark.
CppBenchmark definitions.
#define BENCHMARK_FIXTURE(fixture,...)
Benchmark with fixture register macro.
#define BENCHMARK_MAIN()
Benchmark main entry point macro.