vg
tools for working with variation graphs
Classes | Namespaces | Typedefs | Functions
benchmark.hpp File Reference
#include <chrono>
#include <functional>
#include <iostream>
#include <string>

Classes

struct  vg::BenchmarkResult
 

Namespaces

 vg
 

Typedefs

using vg::benchtime = chrono::nanoseconds
 We define a duration type for expressing benchmark times in. More...
 

Functions

ostream & vg::operator<< (ostream &out, const BenchmarkResult &result)
 
void vg::benchmark_control ()
 
BenchmarkResult vg::run_benchmark (const string &name, size_t iterations, const function< void(void)> &under_test)
 
BenchmarkResult vg::run_benchmark (const string &name, size_t iterations, const function< void(void)> &setup, const function< void(void)> &under_test)
 

Detailed Description

: implementations of benchmarking functions

Contains utilities for running (micro)benchmarks of vg code.