ComPPare 1.0.0
Loading...
Searching...
No Matches
google_benchmark.hpp File Reference

This file contains the Google Benchmark plugin for the ComPPare framework. More...

Include dependency graph for google_benchmark.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  comppare::plugin::google_benchmark::state
 State class to manage the benchmark state. More...
 
class  comppare::plugin::google_benchmark::google_benchmark_manager
 Manager class for Google Benchmark integration. More...
 
class  comppare::plugin::google_benchmark::GoogleBenchmarkPlugin< InTup, OutTup >
 Google Benchmark plugin for the ComPPare framework. More...
 

Namespaces

namespace  comppare
 ComPPare framework main namespace.
 
namespace  comppare::plugin
 
namespace  comppare::plugin::google_benchmark
 

Macros

#define PLUGIN_HOTLOOP_BENCH
 Macro to benchmark a function using Google Benchmark.
 
#define PLUGIN_SET_ITERATION_TIME(TIME)    comppare::plugin::google_benchmark::SetIterationTime(TIME);
 Macro to set the iteration time for a benchmark.
 

Functions

template<comppare::internal::concepts::FloatingPoint T>
void comppare::plugin::google_benchmark::SetIterationTime (T time)
 Set the iteration time for the current benchmark.
 
template<typename Rep , typename Period >
void comppare::plugin::google_benchmark::SetIterationTime (std::chrono::duration< Rep, Period > time)
 Set the iteration time for the current benchmark.
 

Detailed Description

This file contains the Google Benchmark plugin for the ComPPare framework.

Author
Leong Fan FUNG (funglf) stanl.nosp@m.eyfu.nosp@m.nglf@.nosp@m.gmai.nosp@m.l.com
Date
2025
See also
LICENSE For full license text.

Macro Definition Documentation

◆ PLUGIN_HOTLOOP_BENCH

#define PLUGIN_HOTLOOP_BENCH
Value:
for (auto _ : st) \
{ \
hotloop_body(); \
}
static benchmark::State & get_state()
Definition google_benchmark.hpp:78

Macro to benchmark a function using Google Benchmark.

◆ PLUGIN_SET_ITERATION_TIME

#define PLUGIN_SET_ITERATION_TIME (   TIME)     comppare::plugin::google_benchmark::SetIterationTime(TIME);

Macro to set the iteration time for a benchmark.