Uses 8 buffers when testing for speed.

This commit is contained in:
Andrea Mazzoleni 2013-06-14 18:46:49 +02:00
parent d9dcaa4893
commit 39b80a1a13

View file

@ -61,7 +61,7 @@ void speed(void)
unsigned count;
unsigned delta = 100;
unsigned block_size = 256 * 1024;
unsigned diskmax = 4;
unsigned diskmax = 8;
void* buffer_alloc;
unsigned char* buffer_aligned;
unsigned char** buffer;
@ -145,7 +145,7 @@ void speed(void)
printf("\n");
printf("Speed test with %d disk and %d buffer size...\n", diskmax, block_size);
printf("Speed test with %d disk and %d buffer size, for a total of %u KiB...\n", diskmax, block_size, (diskmax + 2) * block_size / 1024);
SPEED_START {
for(j=0;j<diskmax;++j) {