|
1 | | -benchmarks_exe = executable( |
2 | | - 'msft_proxy_benchmarks', |
3 | | - files( |
4 | | - 'proxy_creation_benchmark.cpp', |
5 | | - 'proxy_operation_benchmark.cpp', |
6 | | - 'proxy_operation_benchmark_context.cpp', |
7 | | - ), |
8 | | - implicit_include_directories: false, |
9 | | - dependencies: [msft_proxy4_dep, benchmark_dep], |
10 | | - build_by_default: false, |
11 | | -) |
12 | | - |
13 | | -autogen_benchmarks = custom_target( |
14 | | - command: [ |
15 | | - autogen_benchmarks_exe, |
16 | | - custom_target( |
17 | | - command: [benchmarks_exe, '--benchmark_list_tests'], |
18 | | - capture: true, |
19 | | - output: 'tests.txt', |
| 1 | +benchmark( |
| 2 | + 'ProxyBenchmarks', |
| 3 | + executable( |
| 4 | + 'msft_proxy_benchmarks', |
| 5 | + files( |
| 6 | + 'proxy_creation_benchmark.cpp', |
| 7 | + 'proxy_operation_benchmark.cpp', |
| 8 | + 'proxy_operation_benchmark_context.cpp', |
20 | 9 | ), |
21 | | - meson.current_source_dir() / 'meson.build', |
22 | | - ], |
23 | | - output: 'autogen.stamp', |
24 | | - build_by_default: true, |
| 10 | + implicit_include_directories: false, |
| 11 | + dependencies: [msft_proxy4_dep, benchmark_dep], |
| 12 | + build_by_default: false, |
| 13 | + ), |
25 | 14 | ) |
26 | | - |
27 | | -#pragma autogen push |
28 | | -benchmarks = { |
29 | | - 'ObjectCreation': [ |
30 | | - 'BM_SmallObjectCreationWithProxy_Shared', |
31 | | - 'BM_SmallObjectCreationWithProxy_SharedPooled', |
32 | | - 'BM_SmallObjectCreationWithUniquePtr', |
33 | | - 'BM_SmallObjectCreationWithSharedPtr', |
34 | | - 'BM_SmallObjectCreationWithSharedPtr_Pooled', |
35 | | - 'BM_SmallObjectCreationWithAny', |
36 | | - 'BM_LargeObjectCreationWithProxy', |
37 | | - 'BM_LargeObjectCreationWithProxy_Pooled', |
38 | | - 'BM_LargeObjectCreationWithProxy_Shared', |
39 | | - 'BM_LargeObjectCreationWithProxy_SharedPooled', |
40 | | - 'BM_LargeObjectCreationWithUniquePtr', |
41 | | - 'BM_LargeObjectCreationWithSharedPtr', |
42 | | - 'BM_LargeObjectCreationWithSharedPtr_Pooled', |
43 | | - 'BM_LargeObjectCreationWithAny', |
44 | | - ], |
45 | | - 'ObjectInvocation': [ |
46 | | - 'BM_SmallObjectInvocationViaProxy_Shared', |
47 | | - 'BM_SmallObjectInvocationViaProxyView', |
48 | | - 'BM_SmallObjectInvocationViaVirtualFunction', |
49 | | - 'BM_SmallObjectInvocationViaVirtualFunction_Shared', |
50 | | - 'BM_SmallObjectInvocationViaVirtualFunction_RawPtr', |
51 | | - 'BM_LargeObjectInvocationViaProxy', |
52 | | - 'BM_LargeObjectInvocationViaProxy_Shared', |
53 | | - 'BM_LargeObjectInvocationViaProxyView', |
54 | | - 'BM_LargeObjectInvocationViaVirtualFunction', |
55 | | - 'BM_LargeObjectInvocationViaVirtualFunction_Shared', |
56 | | - 'BM_LargeObjectInvocationViaVirtualFunction_RawPtr', |
57 | | - ], |
58 | | - 'ObjectRelocation': [ |
59 | | - 'BM_SmallObjectRelocationViaProxy_NothrowRelocatable', |
60 | | - 'BM_SmallObjectRelocationViaUniquePtr', |
61 | | - 'BM_SmallObjectRelocationViaAny', |
62 | | - 'BM_LargeObjectRelocationViaProxy', |
63 | | - 'BM_LargeObjectRelocationViaProxy_NothrowRelocatable', |
64 | | - 'BM_LargeObjectRelocationViaUniquePtr', |
65 | | - 'BM_LargeObjectRelocationViaAny', |
66 | | - ], |
67 | | -} |
68 | | -#pragma autogen pop |
69 | | - |
70 | | -foreach suite : benchmarks.keys() |
71 | | - foreach name : benchmarks[suite] |
72 | | - benchmark( |
73 | | - name, |
74 | | - benchmarks_exe, |
75 | | - args: [f'--benchmark_filter=^@name@$'], |
76 | | - suite: suite, |
77 | | - depends: autogen_benchmarks, |
78 | | - ) |
79 | | - endforeach |
80 | | -endforeach |
0 commit comments