![]() |
mutable
A Database System for Research and Fast Prototyping
|
#include <chrono>
#include <cstdint>
#include <iostream>
#include <mutable/util/list_allocator.hpp>
#include <mutable/util/malloc_allocator.hpp>
#include <type_traits>
#include <vector>
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 |
int main | ( | void | ) |
Definition at line 144 of file allocator_benchmark.cpp.
References m::Exponential, and run_benchmark_suite_for_allocator().
|
constexpr |
Definition at line 23 of file allocator_benchmark.cpp.
|
constexpr |
Definition at line 21 of file allocator_benchmark.cpp.
|
constexpr |
Definition at line 22 of file allocator_benchmark.cpp.
void run_benchmark_allocations_fixed_allocate | ( | const std::string & | name, |
const Allocator & | proto, | ||
const float | fraction_deallocate, | ||
const std::size_t | size | ||
) |
Definition at line 26 of file allocator_benchmark.cpp.
References NUM_ALLOCATIONS_START, and NUM_ALLOCATIONS_STOP.
Referenced by run_benchmark_suite_for_allocator().
void run_benchmark_allocations_fixed_allocate_then_deallocate | ( | const std::string & | name, |
const Allocator & | proto, | ||
const std::size_t | size | ||
) |
Definition at line 60 of file allocator_benchmark.cpp.
References NUM_ALLOCATIONS_START, and NUM_ALLOCATIONS_STOP.
Referenced by run_benchmark_suite_for_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().
void run_benchmark_suite_for_allocator | ( | const std::string & | name, |
const Allocator & | proto | ||
) |
Definition at line 114 of file allocator_benchmark.cpp.
References run_benchmark_allocations_fixed_allocate(), run_benchmark_allocations_fixed_allocate_then_deallocate(), and run_benchmark_allocations_fixed_allocate_then_deallocate_reversed().
Referenced by main().
|
staticconstexpr |
Definition at line 13 of file allocator_benchmark.cpp.
Referenced by run_benchmark_allocations_fixed_allocate(), run_benchmark_allocations_fixed_allocate_then_deallocate(), and run_benchmark_allocations_fixed_allocate_then_deallocate_reversed().
|
staticconstexpr |
Definition at line 14 of file allocator_benchmark.cpp.
Referenced by run_benchmark_allocations_fixed_allocate(), and run_benchmark_allocations_fixed_allocate_then_deallocate().