summaryrefslogtreecommitdiff
path: root/lib/libc_r/BENCH/null.c
blob: 15436e18a6668137121959d241b3ec9bd096d61b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include <stdio.h>
#include <pthread.h>
#include <err.h>
#include "bench.h"

static char name[] =  "Null test";
static char doc[] = 
"\tThe time needed for performing a tight empty loop. This indicates\n"
"\tthe overhead incurred by the measurement harness. It should be zero,\n"
"\tand may even be negative.";



int
main() {
	bench_t b;

	bench_init(&b, name, doc, "per cycle");
	bench_header(&b);
	bench_amortize(&b, BENCH_LOOPS) {
		/* nothng */
	}
	bench_report(&b);
	exit(0);
}