POSIX Shared Memory Data Structures 1.0
High-performance lock-free data structures for inter-process communication
|
#include <iostream>
#include <chrono>
#include <vector>
#include <numeric>
#include <random>
#include "posix_shm.h"
#include "shm_array.h"
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 () |
double benchmark | ( | const std::string & | name, |
Func | f, | ||
size_t | iterations = 1000000 |
||
) |
Definition at line 14 of file benchmark_reads.cpp.
Referenced by main().
int main | ( | ) |
Definition at line 29 of file benchmark_reads.cpp.
References shm_array< T, TableType >::begin(), benchmark(), shm_array< T, TableType >::data(), shm_array< T, TableType >::end(), and ITERATIONS.