You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-07-13 01:00:23 +02:00
Add casts to performance/storage test for 32-bit architectures.
This commit is contained in:
@ -237,7 +237,7 @@ testRun(void)
|
|||||||
ASSERT(bufUsed(block) == 1024 * 1024);
|
ASSERT(bufUsed(block) == 1024 * 1024);
|
||||||
|
|
||||||
// Build the input buffer
|
// Build the input buffer
|
||||||
Buffer *input = bufNew(blockTotal * bufSize(block));
|
Buffer *input = bufNew((size_t)blockTotal * bufSize(block));
|
||||||
|
|
||||||
for (unsigned int blockIdx = 0; blockIdx < blockTotal; blockIdx++)
|
for (unsigned int blockIdx = 0; blockIdx < blockTotal; blockIdx++)
|
||||||
memcpy(bufPtr(input) + (blockIdx * bufSize(block)), bufPtr(block), bufSize(block));
|
memcpy(bufPtr(input) + (blockIdx * bufSize(block)), bufPtr(block), bufSize(block));
|
||||||
@ -246,7 +246,7 @@ testRun(void)
|
|||||||
|
|
||||||
// -------------------------------------------------------------------------------------------------------------------------
|
// -------------------------------------------------------------------------------------------------------------------------
|
||||||
TEST_TITLE_FMT(
|
TEST_TITLE_FMT(
|
||||||
"%u iteration(s) of %" PRIu64 "MiB with %" PRIu64 "MB/s input, %" PRIu64 "MB/s output", iteration,
|
"%u iteration(s) of %zuMiB with %" PRIu64 "MB/s input, %" PRIu64 "MB/s output", iteration,
|
||||||
bufUsed(input) / bufUsed(block), rateIn, rateOut);
|
bufUsed(input) / bufUsed(block), rateIn, rateOut);
|
||||||
|
|
||||||
#define BENCHMARK_BEGIN() \
|
#define BENCHMARK_BEGIN() \
|
||||||
|
Reference in New Issue
Block a user