mutable
A Database System for Research and Fast Prototyping
Loading...
Searching...
No Matches
Functions | Variables
allocator_benchmark.cpp File Reference
#include <chrono>
#include <cstdint>
#include <iostream>
#include <mutable/util/list_allocator.hpp>
#include <mutable/util/malloc_allocator.hpp>
#include <type_traits>
#include <vector>
Include dependency graph for allocator_benchmark.cpp:

Go to the source code of this file.

Functions

constexpr unsigned long long operator""_Ki (unsigned long long n)
 
constexpr unsigned long long operator""_Mi (unsigned long long n)
 
constexpr unsigned long long operator""_Gi (unsigned long long n)
 
template<typename Allocator >
void run_benchmark_allocations_fixed_allocate (const std::string &name, const Allocator &proto, const float fraction_deallocate, const std::size_t size)
 
template<typename Allocator >
void run_benchmark_allocations_fixed_allocate_then_deallocate (const std::string &name, const Allocator &proto, const std::size_t size)
 
template<typename Allocator >
void run_benchmark_allocations_fixed_allocate_then_deallocate_reversed (const std::string &name, const Allocator &proto, const std::size_t size)
 
template<typename Allocator >
void run_benchmark_suite_for_allocator (const std::string &name, const Allocator &proto)
 
int main (void)
 

Variables

static constexpr std::size_t NUM_ALLOCATIONS_START = 1UL<<10
 
static constexpr std::size_t NUM_ALLOCATIONS_STOP = 1UL<<13
 

Function Documentation

◆ main()

int main ( void  )

Definition at line 144 of file allocator_benchmark.cpp.

References m::Exponential, and run_benchmark_suite_for_allocator().

◆ operator""_Gi()

constexpr unsigned long long operator""_Gi ( unsigned long long  n)
constexpr

Definition at line 23 of file allocator_benchmark.cpp.

◆ operator""_Ki()

constexpr unsigned long long operator""_Ki ( unsigned long long  n)
constexpr

Definition at line 21 of file allocator_benchmark.cpp.

◆ operator""_Mi()

constexpr unsigned long long operator""_Mi ( unsigned long long  n)
constexpr

Definition at line 22 of file allocator_benchmark.cpp.

◆ run_benchmark_allocations_fixed_allocate()

template<typename Allocator >
void run_benchmark_allocations_fixed_allocate ( const std::string &  name,
const Allocator &  proto,
const float  fraction_deallocate,
const std::size_t  size 
)

◆ run_benchmark_allocations_fixed_allocate_then_deallocate()

template<typename Allocator >
void run_benchmark_allocations_fixed_allocate_then_deallocate ( const std::string &  name,
const Allocator &  proto,
const std::size_t  size 
)

◆ run_benchmark_allocations_fixed_allocate_then_deallocate_reversed()

template<typename Allocator >
void run_benchmark_allocations_fixed_allocate_then_deallocate_reversed ( const std::string &  name,
const Allocator &  proto,
const std::size_t  size 
)

Definition at line 87 of file allocator_benchmark.cpp.

References NUM_ALLOCATIONS_START.

Referenced by run_benchmark_suite_for_allocator().

◆ run_benchmark_suite_for_allocator()

template<typename Allocator >
void run_benchmark_suite_for_allocator ( const std::string &  name,
const Allocator &  proto 
)

Variable Documentation

◆ NUM_ALLOCATIONS_START

constexpr std::size_t NUM_ALLOCATIONS_START = 1UL<<10
staticconstexpr

◆ NUM_ALLOCATIONS_STOP

constexpr std::size_t NUM_ALLOCATIONS_STOP = 1UL<<13
staticconstexpr