Skip to content

Commit

Permalink
test: cleanup file after write portion of w1r3 (#2177)
Browse files Browse the repository at this point in the history
* test: cleanup file after write portion of w1r3

* use chunk size as object size for range read test
  • Loading branch information
ddelgrosso1 authored Apr 6, 2023
1 parent be0c410 commit 5e4e5b6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal-tooling/performPerformanceTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ async function performRangedReadTest(): Promise<TestResult[]> {
const results: TestResult[] = [];
const fileSizeRange = getLowHighFileSize(argv.object_size);
const fileName = generateRandomFileName(TEST_NAME_STRING);
const sizeInBytes = generateRandomFile(
generateRandomFile(
fileName,
fileSizeRange.low,
fileSizeRange.high,
Expand All @@ -89,7 +89,7 @@ async function performRangedReadTest(): Promise<TestResult[]> {

const iterationResult: TestResult = {
op: 'READ[0]',
objectSize: sizeInBytes,
objectSize: argv.range_read_size,
appBufferSize: NODE_DEFAULT_HIGHWATER_MARK_BYTES,
crc32cEnabled: false,
md5Enabled: false,
Expand Down Expand Up @@ -170,6 +170,7 @@ async function performWriteReadTest(): Promise<TestResult[]> {

iterationResult.elapsedTimeUs = Math.round((end - start) * 1000);
results.push(iterationResult);
cleanupFile(fileName);
}

const iterationResult: TestResult = {
Expand Down

0 comments on commit 5e4e5b6

Please sign in to comment.