DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T c

⟦663153ecd⟧ TextFile

    Length: 728 (0x2d8)
    Types: TextFile
    Names: »chrono.awk«

Derivation

└─⟦db229ac7e⟧ Bits:30007240 EUUGD20: SSBA 1.2 / AFW Benchmarks
    └─⟦this⟧ »EUUGD20/AFUU-ssba1.21/ssba1.21E/musbus/chrono.awk« 

TextFile

#
# Script : chrono.awk
#
# modified version of time.awk to be used with chrono - Philippe Dax
#
BEGIN {
	FS = "\t"
}
/^$/	{ next }
{
	real+=$2
	r2+=$2*$2
	cpu=$3
	user+=$3
	sys+=$4
	c2+=(cpu+$4)*(cpu+$4)
	iter++;
}
END	{
	if (iter > 0) {
		printf "Elapsed Time: %.2f seconds",real/iter
		if (iter > 1) {
	printf " (standard deviation %.3f sec)",sqrt((r2-2*real*real/iter+real*real/iter)/(iter-1))
		}
		cpu=sys+user
		printf "\nCPU Time: %.2f seconds [ %.2fu + %.2fs ]",cpu/iter,user/iter,sys/iter
		if (iter > 1) {
	printf " (standard deviation %.3f sec)",sqrt((c2-2*cpu*cpu/iter+cpu*cpu/iter)/(iter-1))
		}
		print
	}
	else {
		print "Elapsed Time: -- no measured results!!"
		print "CPU Time: -- no measured results!!"
	}
}