Skip to content

Commit

Permalink
fixed mutability in printBenchmarkTable
Browse files Browse the repository at this point in the history
  • Loading branch information
i582 committed Jan 30, 2025
1 parent d1da1d3 commit 362cd79
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/test/benchmarks/jetton/jetton.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,16 @@ function printBenchmarkTable(results: BenchmarkResult[]): void {

const changes = calculateChanges(results);

results.forEach((result, i) => {
table.push([
results
.map((result, i) => [
result.label,
`${result.transfer} ${changes[i]?.[0] ?? ""}`,
`${result.burn} ${changes[i]?.[1] ?? ""}`,
`${result.discovery} ${changes[i]?.[2] ?? ""}`,
]);
});
])
.forEach((arr) => {
table.push(arr);
});

let output = "";
output += table.toString();
Expand Down

0 comments on commit 362cd79

Please sign in to comment.