Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions report/src/components/ConfigCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,17 @@ const buildRows = (config: LoadTestConfig): Row[][] => {
{ label: "Duration", value: config.duration },
{ label: "Target gas/s", value: formatTargetGps(config.target_gps) },
];
// Surface the storage workload's cold-slot count (from the `storage` tx's
// `slots_per_tx`) so proofs/storage runs show their per-tx write budget.
const storageTx = config.transactions.find(
(t) => t.type === "storage" && t.slots_per_tx != null,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This assumes that all txns will touch the same amount of storage slots. Is that a safe assumption?

);
if (storageTx?.slots_per_tx != null) {
target.push({
label: "Cold storage slots / tx",
value: storageTx.slots_per_tx.toLocaleString(),
});
}

const funding: Row[] = [
{
Expand Down
6 changes: 5 additions & 1 deletion report/src/pages/LoadTestDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,15 @@ interface LoadTestReportContentProps {
to: string;
label: string;
};
network?: string;
}

export const LoadTestReportContent = ({
result,
title,
subtitle,
backLink,
network,
}: LoadTestReportContentProps) => {
const headlineTps = result.throughput.tps;
const headlineFlashblocksLatency = result.flashblocks_latency;
Expand All @@ -161,7 +163,8 @@ export const LoadTestReportContent = ({
[headlineFlashblocksLatency],
);

const headlineLabel = "Swaps/s";
// Proofs runs are not swap-based, so the hero reads as raw TPS instead of Swaps/s.
const headlineLabel = network === "proofs" ? "TPS" : "Swaps/s";

return (
<>
Expand Down Expand Up @@ -290,6 +293,7 @@ const LoadTestDetail = () => {
to: `/load-tests/${network ?? "sepolia"}/all`,
label: "View all runs →",
}}
network={network}
/>
)}
</main>
Expand Down
9 changes: 8 additions & 1 deletion report/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,14 @@ export interface LoadTestConfig {
target_gps: number;
seed: number;
chain_id: number | null;
transactions: Array<{ type: string; weight: number }>;
// Storage-type entries also carry `contract` and `slots_per_tx` (flattened
// from the Rust `TxTypeConfig::Storage` variant via `#[serde(tag = "type")]`).
transactions: Array<{
type: string;
weight: number;
contract?: string;
slots_per_tx?: number;
}>;
fresh_recipient_ratio?: number;
looper_contract: string | null;
swap_token_amount: string;
Expand Down
Loading