Home
last modified time | relevance | path

Searched refs:benchedSize (Results 1 – 2 of 2) sorted by relevance

/third_party/lz4/tests/
Dfullbench.c449 size_t benchedSize = BMK_findMaxMem(inFileSize*2) / 2; /* because 2 buffers */ in fullSpeedBench() local
459 if (benchedSize==0) { DISPLAY("not enough memory \n"); fclose(inFile); return 11; } in fullSpeedBench()
462 if ((U64)benchedSize > inFileSize) benchedSize = (size_t)inFileSize; in fullSpeedBench()
463 if (benchedSize < inFileSize) { in fullSpeedBench()
465 inFileName, (int)(benchedSize>>20)); in fullSpeedBench()
469 …chunkP = (struct chunkParameters*) malloc(((benchedSize / (size_t)g_chunkSize)+1) * sizeof(struct … in fullSpeedBench()
470 orig_buff = (char*) malloc(benchedSize); in fullSpeedBench()
471 nbChunks = (int) ((benchedSize + (size_t)g_chunkSize - 1) / (size_t)g_chunkSize); in fullSpeedBench()
486 readSize = fread(orig_buff, 1, benchedSize, inFile); in fullSpeedBench()
489 if (readSize != benchedSize) { in fullSpeedBench()
[all …]
/third_party/lz4/programs/
Dbench.c552 static void BMK_benchCLevel(void* srcBuffer, size_t benchedSize, in BMK_benchCLevel() argument
566 …onds, %u KB blocks\n", LZ4_VERSION_STRING, LZ4_GIT_COMMIT_STRING, (U32)benchedSize, g_nbSeconds, (… in BMK_benchCLevel()
571 BMK_benchMem(srcBuffer, benchedSize, in BMK_benchCLevel()
619 size_t benchedSize; in BMK_benchFileTable() local
627 benchedSize = BMK_findMaxMem(totalSizeToLoad * 3) / 3; in BMK_benchFileTable()
628 if (benchedSize==0) EXM_THROW(12, "not enough memory"); in BMK_benchFileTable()
629 if ((U64)benchedSize > totalSizeToLoad) benchedSize = (size_t)totalSizeToLoad; in BMK_benchFileTable()
630 if (benchedSize > LZ4_MAX_INPUT_SIZE) { in BMK_benchFileTable()
631 benchedSize = LZ4_MAX_INPUT_SIZE; in BMK_benchFileTable()
632 …LAY("File(s) bigger than LZ4's max input size; testing %u MB only...\n", (U32)(benchedSize >> 20)); in BMK_benchFileTable()
[all …]