File tree 3 files changed +6
-7
lines changed 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 7
7
// cl /Zi /EHsc /I google\x64-Release\include\ hpc_cpp.cpp benchmark.lib benchmark_main.lib /link /Machine:X64 /libpath:".\google\x64-Debug\lib" /out:hpc_cpp.exe
8
8
9
9
#include < benchmark/benchmark.h>
10
- #include " synchronization.h"
11
-
12
- // Register the function as a benchmark
13
- BENCHMARK (BM_Add);
14
- BENCHMARK (BM_MutexAdd);
15
- BENCHMARK (BM_AtomicAdd);
16
10
17
11
// Run the benchmark
18
12
BENCHMARK_MAIN ();
Original file line number Diff line number Diff line change 154
154
</ItemDefinitionGroup >
155
155
<ItemGroup >
156
156
<ClCompile Include =" hpc_cpp.cpp" />
157
- <ClCompile Include =" synchronization.h " />
157
+ <ClCompile Include =" synchronization.cpp " />
158
158
</ItemGroup >
159
159
<Import Project =" $(VCTargetsPath)\Microsoft.Cpp.targets" />
160
160
<ImportGroup Label =" ExtensionTargets" >
Original file line number Diff line number Diff line change @@ -35,3 +35,8 @@ static void BM_AtomicAdd(benchmark::State& state) {
35
35
36
36
benchmark::ClobberMemory ();
37
37
}
38
+
39
+ // Register the function as a benchmark
40
+ BENCHMARK (BM_Add);
41
+ BENCHMARK (BM_MutexAdd);
42
+ BENCHMARK (BM_AtomicAdd);
You can’t perform that action at this time.
0 commit comments