-
Notifications
You must be signed in to change notification settings - Fork 14
/
0_conf.hpp
54 lines (41 loc) · 1.48 KB
/
0_conf.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#pragma once
////////////////////////////////////////////////////////
/// You might want to disable the CPU frequency scaling while running the benchmark:
///
/// sudo apt-get install linux-tools-common # sudo apt-get install linux-tools-3.19.0-80-generic
/// sudo cpupower frequency-set --governor performance
/// ./mybench
/// sudo cpupower frequency-set --governor powersave
///
////////////////////////////////////////////////////////
/// Those args will be applied to all the benchmarks runs.
/// Useful values are
/// ->Iterations(2000)
/// ->MinTime(0.1)
/// ->Unit(kMicrosecond)
/// ->Unit(kMillisecond)
#define COURSE_GLOBAL_ARGS() ->Iterations(50)
////////////////////////////////////////////////////////
/// Comment out following headers to disable benchmarks:
////////////////////////////// Section 1
#include "algorithm_1.hpp"
#include "algorithm_2.hpp"
#include "algorithm_3.hpp"
#include "algorithm_4.hpp"
#include "algorithm_5.hpp"
#include "algorithm_6.hpp"
#include "algorithm_x.hpp"
////////////////////////////// Section 2
#include "container_1.hpp"
#include "container_2.hpp"
#include "container_3.hpp"
////////////////////////////// Section 2, vector features
#include "container_4.hpp"
#include "container_5.hpp"
////////////////////////////// Section 2, associative
#include "container_6.hpp"
#include "container_7.hpp"
////////////////////////////// Section 3, multithreading
#include "mt_1.hpp"
#include "mt_2.hpp"
#include "mt_3.hpp"