shithub: purgatorio

ref: 71292834bbafcf6bc409cfd7691f9e6650df025b
dir: purgatorio/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();
};