Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
benchmark.hpp File Reference
#include "barretenberg/common/throw_or_abort.hpp"
#include "barretenberg/env/hardware_concurrency.hpp"
#include <cstdlib>
#include <ctime>
#include <fcntl.h>
#include <iostream>
#include <sstream>
#include <string>
#include <unistd.h>

Go to the source code of this file.

Classes

struct  TypeTraits< T, typename std::enable_if< std::is_arithmetic< T >::value >::type >
 
struct  TypeTraits< std::string >
 
struct  TypeTraits< double >
 
struct  TypeTraits< bool >
 

Functions

std::string getCurrentTimestamp ()
 
template<typename T >
std::string toString (const T &value)
 
void appendToStream (std::ostringstream &)
 
template<typename K , typename V , typename... Args>
void appendToStream (std::ostringstream &oss, const K &key, const V &value, Args... args)
 
template<typename T , typename... Args>
void write_benchmark (const std::string &name, const T &value, Args... args)
 

Function Documentation

◆ appendToStream() [1/2]

void appendToStream ( std::ostringstream &  )

Definition at line 78 of file benchmark.hpp.

◆ appendToStream() [2/2]

template<typename K , typename V , typename... Args>
void appendToStream ( std::ostringstream &  oss,
const K &  key,
const V &  value,
Args...  args 
)

Definition at line 84 of file benchmark.hpp.

◆ getCurrentTimestamp()

std::string getCurrentTimestamp ( )

Definition at line 62 of file benchmark.hpp.

◆ toString()

template<typename T >
std::string toString ( const T &  value)

Definition at line 71 of file benchmark.hpp.

◆ write_benchmark()

template<typename T , typename... Args>
void write_benchmark ( const std::string &  name,
const T &  value,
Args...  args 
)

Definition at line 90 of file benchmark.hpp.