Skip to content

Commit

Permalink
test: rw performance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
karenc-bq committed Oct 25, 2024
1 parent c332625 commit 38897d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ describe("rwperformance", () => {

// Internal connection pool results.
ConnectionProviderManager.setConnectionProvider(new InternalPooledConnectionProvider());
const rwPluginWithPoolConfig = initReadWritePluginConfig(env.databaseInfo.clusterEndpoint, env.databaseInfo.clusterEndpointPort);
const rwPluginWithPoolConfig = initReadWritePluginConfig(env.databaseInfo.writerInstanceEndpoint, env.databaseInfo.clusterEndpointPort);
const rwPluginWithPoolData = await measurePerformance(rwPluginWithPoolConfig);

readerData = calculateReaderOverhead("Switch to reader", rwPluginWithPoolData, noPluginData);
Expand Down
4 changes: 3 additions & 1 deletion tests/integration/container/tests/utils/perf_util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ export class PerfTestUtility {
}

const worksheet = XLSX.utils.json_to_sheet(rows);
XLSX.utils.book_append_sheet(workbook, worksheet, worksheetName);
if (!workbook.Sheets[worksheetName]) {
XLSX.utils.book_append_sheet(workbook, worksheet, worksheetName);
}
XLSX.utils.sheet_add_aoa(worksheet, data[0].writeHeader(), { origin: "A1" });
XLSX.writeFile(workbook, filePath);
}
Expand Down

0 comments on commit 38897d2

Please sign in to comment.