6 #define NITERS (3*1000*1000)
10 int main ( int argc
, char* argv
[] )
20 printf("initialising\n");
21 for (i
= 0; i
< NLIVE
; i
++)
26 for (i
= 0; i
< NITERS
; i
++) {
28 if (j
== NLIVE
) j
= 0;
31 arr
[j
] = malloc(nbytes
);
33 // create some partially defined bytes in arr[j]
34 for (jpdb
=0; jpdb
<nbytes
; jpdb
= jpdb
+pdb
) {
35 arr
[j
][jpdb
] &= (jpdb
& 0xff);
39 // Cycle through the sizes 0,8,16,24,32. Zero will get rounded up to
40 // 8, so the 8B bucket will get twice as much traffic.
46 for (i
= 0; i
< NLIVE
; i
++)