Some checks failed
sm-rpc / build (Debug, aarch64-linux-gnu) (push) Failing after 29s
sm-rpc / build (Debug, arm-linux-gnueabihf) (push) Failing after 16s
sm-rpc / build (Debug, host.gcc) (push) Failing after 11s
sm-rpc / build (Debug, mipsel-linux-gnu) (push) Failing after 12s
sm-rpc / build (Release, aarch64-linux-gnu) (push) Failing after 11s
sm-rpc / build (Release, arm-linux-gnueabihf) (push) Failing after 11s
sm-rpc / build (Release, host.gcc) (push) Failing after 12s
sm-rpc / build (Release, mipsel-linux-gnu) (push) Failing after 16s
13 lines
183 B
C++
13 lines
183 B
C++
#include "calc.h"
|
|
#include <benchmark/benchmark.h>
|
|
|
|
static void BM_Add(benchmark::State &state)
|
|
{
|
|
while (state.KeepRunning())
|
|
{
|
|
Add(1, 2);
|
|
}
|
|
}
|
|
|
|
BENCHMARK(BM_Add);
|