POSIX Shared Memory Data Structures 1.0
High-performance lock-free data structures for inter-process communication
Loading...
Searching...
No Matches
benchmark_reads.cpp File Reference
#include <iostream>
#include <chrono>
#include <vector>
#include <numeric>
#include <random>
#include "posix_shm.h"
#include "shm_array.h"
+ Include dependency graph for benchmark_reads.cpp:

Go to the source code of this file.

Functions

template<typename Func >
double benchmark (const std::string &name, Func f, size_t iterations=1000000)
 
int main ()
 

Function Documentation

◆ benchmark()

template<typename Func >
double benchmark ( const std::string &  name,
Func  f,
size_t  iterations = 1000000 
)

Definition at line 14 of file benchmark_reads.cpp.

Referenced by main().

◆ main()