Home
last modified time | relevance | path

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

/external/lz4/tests/
Dfullbench.c364 size_t benchedSize; in fullSpeedBench() local
378 benchedSize = BMK_findMaxMem(inFileSize*2) / 2; /* because 2 buffers */ in fullSpeedBench()
379 if (benchedSize==0) { DISPLAY( "not enough memory\n"); fclose(inFile); return 11; } in fullSpeedBench()
380 if ((U64)benchedSize > inFileSize) benchedSize = (size_t)inFileSize; in fullSpeedBench()
381 if (benchedSize < inFileSize) in fullSpeedBench()
382 …ot enough memory for '%s' full size; testing %i MB only...\n", inFileName, (int)(benchedSize>>20)); in fullSpeedBench()
385 …chunkP = (struct chunkParameters*) malloc(((benchedSize / (size_t)g_chunkSize)+1) * sizeof(struct … in fullSpeedBench()
386 orig_buff = (char*) malloc(benchedSize); in fullSpeedBench()
387 nbChunks = (int) ((benchedSize + (g_chunkSize-1)) / g_chunkSize); in fullSpeedBench()
402 readSize = fread(orig_buff, 1, benchedSize, inFile); in fullSpeedBench()
[all …]
/external/lz4/programs/
Dbench.c398 static void BMK_benchCLevel(void* srcBuffer, size_t benchedSize, in BMK_benchCLevel() argument
411 …onds, %u KB blocks\n", LZ4_VERSION_STRING, LZ4_GIT_COMMIT_STRING, (U32)benchedSize, g_nbSeconds, (… in BMK_benchCLevel()
416 BMK_benchMem(srcBuffer, benchedSize, in BMK_benchCLevel()
462 size_t benchedSize; in BMK_benchFileTable() local
470 benchedSize = BMK_findMaxMem(totalSizeToLoad * 3) / 3; in BMK_benchFileTable()
471 if (benchedSize==0) EXM_THROW(12, "not enough memory"); in BMK_benchFileTable()
472 if ((U64)benchedSize > totalSizeToLoad) benchedSize = (size_t)totalSizeToLoad; in BMK_benchFileTable()
473 if (benchedSize > LZ4_MAX_INPUT_SIZE) { in BMK_benchFileTable()
474 benchedSize = LZ4_MAX_INPUT_SIZE; in BMK_benchFileTable()
475 …LAY("File(s) bigger than LZ4's max input size; testing %u MB only...\n", (U32)(benchedSize >> 20)); in BMK_benchFileTable()
[all …]