-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
29 lines (25 loc) · 713 Bytes
/
main.cpp
File metadata and controls
29 lines (25 loc) · 713 Bytes
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
#include <bitset>
#include <iostream>
#include <benchmark/benchmark.h>
#include "benchmarks/avx_512.hpp"
#include "benchmarks/multi_threaded.hpp"
#include "benchmarks/single_thread.hpp"
BENCHMARK(BM_SingleThread)
->Repetitions(25)
->ReportAggregatesOnly(true)
->UseManualTime()
->Unit(benchmark::kMillisecond);
//
// BENCHMARK(BM_MultiThreaded)
// ->Repetitions(25)
// ->ReportAggregatesOnly(true)
// ->UseManualTime()
// //->MeasureProcessCPUTime()
// ->Unit(benchmark::kMillisecond);
BENCHMARK(BM_Avx512)
->Repetitions(25)
->ReportAggregatesOnly(true)
->UseManualTime()
//->MeasureProcessCPUTime()
->Unit(benchmark::kMillisecond);
BENCHMARK_MAIN();