shithub: purgatorio

ref: c116550e6a41572796e4db65e4f6acbcb3d9d6f8
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();
};