code: 9ferno

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