mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-14 11:39:35 +00:00
c6f51377e1
This patch adds a few `std::visit` benchmarks as a starting point. Reviewed By: ldionne, #libc Differential Revision: https://reviews.llvm.org/D85419
21 lines
556 B
C++
21 lines
556 B
C++
#include "benchmark/benchmark.h"
|
|
|
|
#include "VariantBenchmarks.h"
|
|
|
|
using namespace VariantBenchmarks;
|
|
|
|
BENCHMARK_TEMPLATE(BM_Visit, 3, 1);
|
|
BENCHMARK_TEMPLATE(BM_Visit, 3, 2);
|
|
BENCHMARK_TEMPLATE(BM_Visit, 3, 3);
|
|
BENCHMARK_TEMPLATE(BM_Visit, 3, 4);
|
|
BENCHMARK_TEMPLATE(BM_Visit, 3, 5);
|
|
BENCHMARK_TEMPLATE(BM_Visit, 3, 6);
|
|
BENCHMARK_TEMPLATE(BM_Visit, 3, 7);
|
|
BENCHMARK_TEMPLATE(BM_Visit, 3, 8);
|
|
BENCHMARK_TEMPLATE(BM_Visit, 3, 9);
|
|
BENCHMARK_TEMPLATE(BM_Visit, 3, 10);
|
|
BENCHMARK_TEMPLATE(BM_Visit, 3, 15);
|
|
BENCHMARK_TEMPLATE(BM_Visit, 3, 20);
|
|
|
|
BENCHMARK_MAIN();
|