#include #include #include #include #include #include "fastcommon/common_define.h" #include "test_types.h" typedef struct { int bytes; char *filename; } TestFileInfo; TestFileInfo files[FILE_TYPE_COUNT] = { {5 * 1024, "5K"}, {50 * 1024, "50K"}, {200 * 1024, "200K"}, {1 * 1024 * 1024, "1M"}, {10 * 1024 * 1024, "10M"}, {100 * 1024 * 1024, "100M"} }; int main() { #define BUFF_SIZE (1 * 1024) int i; int k; int loop; FILE *fp; unsigned char buff[BUFF_SIZE]; unsigned char *p; unsigned char *pEnd; srand(SRAND_SEED); pEnd = buff + BUFF_SIZE; for (i=0; i