code: 9ferno

ref: a31cf02fc7b39e78f79bf6d61487aa24aed2854a
dir: /module/bench.m/

View raw version
# Benchmarking

Bench: module
{
	PATH:	con "$Bench";

	FD: adt
	{
		fd:	int;
	};

	microsec:		fn(): big;
	reset:		fn();
	read:			fn(fd: ref FD, buf: array of byte, n: int): int;
	disablegc:		fn();
	enablegc:		fn();
};