17#include "benchmark/benchmark.h"
22#define NOINLINE __attribute__((noinline))
38 while (
state.KeepRunning()) {
39 for (
int i = 0; i < 1000; ++i) {
43 benchmark::DoNotOptimize(
id);
49 while (
state.KeepRunning()) {
50 for (
int i = 0; i < 1000; ++i) {
54 benchmark::DoNotOptimize(
id);
#define C10_LOG_API_USAGE_ONCE(...)
Very lightweight logging for the first time API usage.
#define NOINLINE
Copyright (c) 2016-present, Facebook, Inc.
static void BM_NoAPILogging(benchmark::State &state)
int call_no_logging(int id)
static void BM_APILogging(benchmark::State &state)