unsigned long *buf, i, tmp = 0;
struct timeval start, end;
+ printf("Benchmark sequential access bandwidth "
+ "and random access latency\n\n");
+
if (argc > 1)
iterations = atoi(argv[1]);
else
printf("Doing %d runs with buffer size goin up to %dk\n",
iterations, 1 << (iterations - 10));
printf("Running each round %d times\n", count);
- printf("Size of unsigned long is %lu bits\n\n", lsize * 8);
+ printf("Size of unsigned long is %d bits\n\n", (int)lsize * 8);
switch (lsize) {
case 4:
for (i = 0; i < size; i++)
buf[i] = i;
- printf("%8luk |", size * lsize / 1024);
+ printf("%8dk |", (int)(size * lsize / 1024));
/* Read bandwidth*/