-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from alexKrauseTUD/rework
PR from wip-master to master
- Loading branch information
Showing
11 changed files
with
3,676 additions
and
1,149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#pragma once | ||
|
||
#include <chrono> | ||
#include <cstdint> | ||
#include <cstring> | ||
#include <fstream> | ||
#include <functional> | ||
#include <iomanip> | ||
#include <iostream> | ||
#include <sstream> | ||
#include <string> | ||
#include <vector> | ||
|
||
#include "Worker.hpp" | ||
|
||
extern std::chrono::duration<double> waitingTime; | ||
extern std::chrono::duration<double> workingTime; | ||
|
||
class Benchmarks { | ||
public: | ||
static Benchmarks& getInstance() { | ||
static Benchmarks instance; | ||
return instance; | ||
} | ||
~Benchmarks(); | ||
|
||
void executeAllBenchmarks(); | ||
|
||
static const size_t OPTIMAL_BLOCK_SIZE = 65536; | ||
|
||
private: | ||
Benchmarks(); | ||
|
||
void execLocalBenchmark(std::string& logName, std::string locality); | ||
void execRemoteBenchmark(std::string& logName, std::string locality); | ||
void execLocalBenchmarkMW(std::string& logName, std::string locality); | ||
void execRemoteBenchmarkMW(std::string& logName, std::string locality); | ||
|
||
template <bool filter> | ||
void execUPIBenchmark(); | ||
|
||
void execRDMABenchmark(); | ||
void execRDMAHashJoinBenchmark(); | ||
void execRDMAHashJoinPGBenchmark(); | ||
void execRDMAHashJoinStarBenchmark(); | ||
|
||
static const size_t WORKER_NUMBER = 8; | ||
Worker workers[WORKER_NUMBER]; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.