mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-25 23:00:15 +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
23 lines
630 B
C++
23 lines
630 B
C++
#include "benchmark/benchmark.h"
|
|
|
|
#include "VariantBenchmarks.h"
|
|
|
|
using namespace VariantBenchmarks;
|
|
|
|
BENCHMARK_TEMPLATE(BM_Visit, 2, 1);
|
|
BENCHMARK_TEMPLATE(BM_Visit, 2, 2);
|
|
BENCHMARK_TEMPLATE(BM_Visit, 2, 3);
|
|
BENCHMARK_TEMPLATE(BM_Visit, 2, 4);
|
|
BENCHMARK_TEMPLATE(BM_Visit, 2, 5);
|
|
BENCHMARK_TEMPLATE(BM_Visit, 2, 6);
|
|
BENCHMARK_TEMPLATE(BM_Visit, 2, 7);
|
|
BENCHMARK_TEMPLATE(BM_Visit, 2, 8);
|
|
BENCHMARK_TEMPLATE(BM_Visit, 2, 9);
|
|
BENCHMARK_TEMPLATE(BM_Visit, 2, 10);
|
|
BENCHMARK_TEMPLATE(BM_Visit, 2, 20);
|
|
BENCHMARK_TEMPLATE(BM_Visit, 2, 30);
|
|
BENCHMARK_TEMPLATE(BM_Visit, 2, 40);
|
|
BENCHMARK_TEMPLATE(BM_Visit, 2, 50);
|
|
|
|
BENCHMARK_MAIN();
|