Agora  1.2.0
Agora project
bench.cpp File Reference
#include "spdlog/spdlog.h"
#include "spdlog/sinks/basic_file_sink.h"
#include "spdlog/sinks/daily_file_sink.h"
#include "spdlog/sinks/null_sink.h"
#include "spdlog/sinks/rotating_file_sink.h"
#include "spdlog/fmt/bundled/format.h"
#include "utils.h"
#include <atomic>
#include <cstdlib>
#include <memory>
#include <string>
#include <thread>
Include dependency graph for bench.cpp:

Functions

void bench (int howmany, std::shared_ptr< spdlog::logger > log)
 
void bench_mt (int howmany, std::shared_ptr< spdlog::logger > log, size_t thread_count)
 
void bench_threaded_logging (size_t threads, int iters)
 
void bench_single_threaded (int iters)
 
int main (int argc, char *argv[])
 

Variables

static const size_t file_size = 30 * 1024 * 1024
 
static const size_t rotating_files = 5
 
static const int max_threads = 1000
 

Function Documentation

◆ bench()

void bench ( int  howmany,
std::shared_ptr< spdlog::logger log 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ bench_mt()

void bench_mt ( int  howmany,
std::shared_ptr< spdlog::logger log,
size_t  thread_count 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ bench_single_threaded()

void bench_single_threaded ( int  iters)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ bench_threaded_logging()

void bench_threaded_logging ( size_t  threads,
int  iters 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char *  argv[] 
)
Here is the call graph for this function:

Variable Documentation

◆ file_size

const size_t file_size = 30 * 1024 * 1024
static

◆ max_threads

const int max_threads = 1000
static

◆ rotating_files

const size_t rotating_files = 5
static