summaryrefslogtreecommitdiff
path: root/source/test/unittests/foo.bench.c
blob: 531f1d89d476d2ed5db6c48592169120a6868b01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#define KIT_BENCH_FILE foo
#include "../../kit_test/bench.h"

BENCHMARK("foo") {
  BENCHMARK_BEGIN;
  {
    volatile int x = 0;
    for (int i = 0; i < 200000; i++) x++;
  }
  BENCHMARK_END;
}

BENCHMARK("bar") { }