Files
cpp-project-template/src/add_benchmark.cc
tqcq ea9d7b5f8c
All checks were successful
sm-rpc / build (Debug, aarch64-linux-gnu) (push) Successful in 1m7s
sm-rpc / build (Debug, arm-linux-gnueabihf) (push) Successful in 1m15s
sm-rpc / build (Debug, host.gcc) (push) Successful in 1m4s
sm-rpc / build (Debug, mipsel-linux-gnu) (push) Successful in 1m16s
sm-rpc / build (Release, aarch64-linux-gnu) (push) Successful in 1m34s
sm-rpc / build (Release, arm-linux-gnueabihf) (push) Successful in 1m33s
sm-rpc / build (Release, host.gcc) (push) Successful in 1m23s
sm-rpc / build (Release, mipsel-linux-gnu) (push) Successful in 1m30s
feat(third_party): add oatpp,googltest,benchmark
2025-08-19 17:19:37 +08:00

13 lines
153 B
C++

#include "add.h"
#include <benchmark/benchmark.h>
static void
BM_Add(benchmark::State &state)
{
Add(1, 2);
}
BENCHMARK(BM_Add);
BENCHMARK_MAIN();