Beispiel #1
0
int main()
{
	printf("Writing out to %d bytes of data, striding by increasing "
		"lengths, wrapping around when the end is reached\n", DATASIZE);
	dump(ffsl(DATASIZE / sizeof(long)), "%d");
	printf("%16s%16s%16s\n", "stride length", "num of strides", "time taken (ms)");
	for (long i = 0; i < ffsl(DATASIZE / sizeof(long)); i++) {
		printf("%16ld%16ld%16ld\n", sizeof(long) << i,
			DATASIZE / (sizeof(long) << i),
			time_stride(DATASIZE, sizeof(long) << i));
	}
	return 0;
}
Beispiel #2
0
int main() {
    time_stride(UNITSTRIDE);
    time_stride(STRIDE16);
    time_chain();
}