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:
@@ -1,12 +1,10 @@
|
||||
#include "add.h"
|
||||
#include "calc.h"
|
||||
#include <benchmark/benchmark.h>
|
||||
|
||||
static void
|
||||
BM_Add(benchmark::State &state)
|
||||
{
|
||||
Add(1, 2);
|
||||
while (state.KeepRunning()) { Add(1, 2); }
|
||||
}
|
||||
|
||||
BENCHMARK(BM_Add);
|
||||
|
||||
BENCHMARK_MAIN();
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "add.h"
|
||||
#include "calc.h"
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
TEST(Add, Base)
|
||||
Reference in New Issue
Block a user