shithub: sysbench

ref: d818e0fc9c7b36b6cc1494bb2253792ea2c35f4b
dir: /main.c/

View raw version
#include <u.h>
#include <libc.h>
#include <regexp.h>
#include "bench.h"
#include "fns.h"

int	NPROC;


void
main(void)
{
	char *e;

	if((e = getenv("NPROC")) == nil)
		NPROC = 1;
	else
		NPROC = atoi(e);
	free(e);

	

#define S(n)	n();
#define H(x)	print(x);
#define BM(n)	bench("n", n);
	BMARKS
#undef BM
#undef H
	exits(nil);
}