codex
Loading...
Searching...
No Matches
bench.cpp File Reference
#include "bench.hpp"
#include <algorithm>
#include <cstdint>
#include <cstring>
#include <random>
#include <QProcess>
#include <QTemporaryFile>
#include "../../bench/bench.hpp"
#include "base64.hpp"
#include "cmd.hpp"
#include "rfc/adaptor.hpp"
#include "base64/test/common.hpp"
Include dependency graph for bench.cpp:

Namespaces

namespace  anonymous_namespace{bench.cpp}
 

Macros

#define T(f, T, C)   f ## _test<T, C, true>(&this->gen)
 
#define T   exec_test(&this->gen, this->buffer0.data(), this->buffer1.data());
 

Functions

void anonymous_namespace{bench.cpp}::test_data ()
 
bool anonymous_namespace{bench.cpp}::write_rnd_file (std::mt19937 *rnd, QTemporaryFile *f, char *buffer, std::size_t size)
 
bool anonymous_namespace{bench.cpp}::exec_cmd (const QStringList &args, const QString &input, const QString &output)
 
bool anonymous_namespace{bench.cpp}::read_all (QTemporaryFile *f, char *buffer, qint64 n)
 
bool anonymous_namespace{bench.cpp}::files_equal (QTemporaryFile *f0, QTemporaryFile *f1, char *buffer0, char *buffer1)
 
void anonymous_namespace{bench.cpp}::exec_test (std::mt19937 *rnd, char *buffer0, char *buffer1)
 

Variables

constexpr std::size_t anonymous_namespace{bench.cpp}::BUFFER_SIZE = 1024
 

Macro Definition Documentation

◆ T [1/2]

#define T ( f,
T,
C )   f ## _test<T, C, true>(&this->gen)

◆ T [2/2]

#define T   exec_test(&this->gen, this->buffer0.data(), this->buffer1.data());