feat(cmake): 增加一些常用工具
All checks were successful
sm-rpc / build (Debug, arm-linux-gnueabihf) (push) Successful in 1m11s
sm-rpc / build (Debug, aarch64-linux-gnu) (push) Successful in 1m25s
sm-rpc / build (Debug, host.gcc) (push) Successful in 1m2s
sm-rpc / build (Debug, mipsel-linux-gnu) (push) Successful in 1m25s
sm-rpc / build (Release, aarch64-linux-gnu) (push) Successful in 1m32s
sm-rpc / build (Release, arm-linux-gnueabihf) (push) Successful in 1m39s
sm-rpc / build (Release, host.gcc) (push) Successful in 1m22s
sm-rpc / build (Release, mipsel-linux-gnu) (push) Successful in 1m32s
All checks were successful
sm-rpc / build (Debug, arm-linux-gnueabihf) (push) Successful in 1m11s
sm-rpc / build (Debug, aarch64-linux-gnu) (push) Successful in 1m25s
sm-rpc / build (Debug, host.gcc) (push) Successful in 1m2s
sm-rpc / build (Debug, mipsel-linux-gnu) (push) Successful in 1m25s
sm-rpc / build (Release, aarch64-linux-gnu) (push) Successful in 1m32s
sm-rpc / build (Release, arm-linux-gnueabihf) (push) Successful in 1m39s
sm-rpc / build (Release, host.gcc) (push) Successful in 1m22s
sm-rpc / build (Release, mipsel-linux-gnu) (push) Successful in 1m32s
This commit is contained in:
10
src/calc_benchmark.cc
Normal file
10
src/calc_benchmark.cc
Normal file
@@ -0,0 +1,10 @@
|
||||
#include "calc.h"
|
||||
#include <benchmark/benchmark.h>
|
||||
|
||||
static void
|
||||
BM_Add(benchmark::State &state)
|
||||
{
|
||||
while (state.KeepRunning()) { Add(1, 2); }
|
||||
}
|
||||
|
||||
BENCHMARK(BM_Add);
|
||||
Reference in New Issue
Block a user