CSV schemas¶
The columns of every results file: the load-test CSV, the relayer's
bridge_results.csv, run.json and the committee comparison report.
| File | Written by | Where |
|---|---|---|
merged_results.csv |
loadtest |
<OUTPUT_DIR>/PTB_CALL_<unix timestamp>/ (host: shared_data/PTB_CALL_*/ in the Docker stack) |
run.json |
loadtest |
beside merged_results.csv |
bridge_results.csv |
event_handler |
data/bridge_results.csv (host: events_data/bridge_results.csv in the Docker stack) |
summary.md, summary.csv |
consensus_compare.py |
the output directory of consensus_compare.sh |
Columns ending in _ms are epoch milliseconds unless the table says otherwise. Columns ending in
_seconds, and those the tables describe as seconds, are floating-point seconds. Gas figures are in
nanos.
loadtest merged_results.csv¶
One row per request, 24 columns, written by loadtest in the order below
(CSV_HEADERS in stealth_name_service/backend/testing_backend/src/bin/loadtest.rs). The values
come from the backend's transactions item; see HTTP endpoints.
success is written True or False (capitalised). A request that fails in transport gets a row
with tx_count 0, the error text in status, success False, and every later column empty
except request_number, agent_number, http_latency_seconds and response_code.
| Column | Meaning |
|---|---|
request_number |
Request index of this agent. |
agent_number |
Agent index. |
http_latency_seconds |
Round-trip time of the HTTP request, measured by loadtest. |
response_code |
HTTP status code. |
tx_count |
Number of transactions in the response. |
digest |
Transaction digest. |
status |
Success, Failure: <error>, or the error text. |
success |
True when status contains Success, else False. |
computation_cost |
Gas: computation. |
computation_cost_burned |
Gas: computation burned. |
storage_cost |
Gas: storage. |
storage_rebate |
Gas: storage rebate. |
non_refundable_storage_fee |
Gas: non-refundable storage fee. |
net_fees |
Computation plus storage minus rebate. |
network_type |
testnet or devnet. |
blockchain_processing_time |
Seconds of the execute call alone. |
off_chain_time |
Seconds spent off-chain before submission. |
pre_submission_time |
Seconds of signing and coin lookup inside the network window. |
network_latency |
Seconds of the full network window. |
transaction_size_bytes |
Size of the submitted transaction. |
backend_send_time_ms |
Epoch ms stamped when the PTB is built, before coin lookup, signing and submission (send_time_ms in the response). |
client_receive_time_ms |
When loadtest received the response. |
client_blockchain_time |
client_receive_time_ms - backend_send_time_ms, in seconds. Empty when the send time is missing. |
checkpoint_height |
Node checkpoint height when it answered. |
run.json¶
Written beside merged_results.csv by write_run_manifest() in src/bin/loadtest.rs. It records the
achieved rate against the target and every parameter needed to reproduce the run.
| Field | Meaning |
|---|---|
run_id |
--run-id, or null. |
input_rate_target |
--input-rate, or null. |
offered_rate_nominal |
poisson_lambda * agents for poisson arrivals, otherwise agents / interval_secs. |
achieved_rate |
Successful requests divided by active_window_secs. |
rate_achieved |
true when achieved_rate is at least 90 percent of input_rate_target (or of offered_rate_nominal when there is no target). A false run reflects a generator limit, not a protocol result; exclude it from plots. |
rep |
--rep, or null. |
agents |
--agents. |
requests_per_agent |
--requests. |
total_requests |
Requests sent. |
successful_requests |
Requests that succeeded. |
interval_secs |
--interval. |
arrival_type |
--arrival-type. |
increment_interval_secs |
--increment-interval, or null. |
max_requests_per_interval |
--max-requests-per-interval, or null. |
poisson_lambda |
--poisson-lambda, or null. |
pipeline_depth |
--pipeline-depth. |
gas_budget |
--gas-budget. |
target_url |
--target-url. |
json_payload |
--json. |
active_window_secs |
Seconds between the first request and the last response. |
wall_clock_secs |
Wall-clock duration of the run. |
bridge_results.csv¶
One row per relayed event, written by event_handler. The handler deletes the file at start and
appends from then on; the header is written once. The columns are the base columns, then the six
acknowledgement columns, then, only when CONSENSUS_ENABLED is on, ten committee columns. A run
without the committee writes exactly the base-plus-acknowledgement file. Header definitions:
BRIDGE_CSV_HEADER, CONSENSUS_CSV_COLUMNS and bridge_csv_header() in
stealth_name_service/backend/testing_backend/src/bin/event_handler.rs.
success here is lowercase: true or false.
Base columns¶
The destination transaction, with the same names and meaning as in the load-test CSV where they overlap, plus the source-event fields.
| Column | Meaning |
|---|---|
request_number |
Sequence number the handler assigned. |
agent_number |
EVENT_HANDLER_AGENT_NUMBER. |
http_latency_seconds |
Time the handler took to answer the post that delivered the event. |
response_code |
200 for a submitted transaction, 500 for a failure row. |
tx_count |
Events in the destination transaction (the batch size), or 0 on a failure row. Every row of a batch carries the same value. |
digest |
Destination transaction digest. Empty on a failure row. Rows of one batch share it. |
status |
Success, the execution failure, or the error message on a failure row. |
success |
true or false. |
computation_cost, computation_cost_burned, storage_cost, storage_rebate, non_refundable_storage_fee, net_fees |
Gas of the whole destination transaction, recorded raw rather than divided by the batch. Divide by tx_count for a per-event share. |
network_type |
Destination network. |
blockchain_processing_time, off_chain_time, pre_submission_time, network_latency |
Seconds, as in the load-test CSV. |
transaction_size_bytes |
Size of the destination transaction. |
backend_send_time_ms |
Epoch ms stamped after the gas coin is resolved, just before signing and submission. |
client_receive_time_ms |
When the handler received the confirmation. |
client_blockchain_time |
Always empty. Kept for schema parity with the load-test CSV. |
source_event_tx_digest |
Digest of the source transaction that emitted the event. Quoted. |
source_event_seq |
Event index within that transaction. |
source_event_timestamp_ms |
Source event timestamp. |
detection_lag_ms |
When the listener detected the event minus the source timestamp. |
total_bridge_time_seconds |
client_receive_time_ms minus source_event_timestamp_ms: source event to destination confirmation. Empty on a failure row. |
request_id |
The event's request_id, when present. |
checkpoint_height |
Node checkpoint height when it answered the destination call. |
queue_residency_ms |
Time the event waited in the worker queue before a concurrency slot took it. |
failure_stage |
Empty on success. See below. |
failure_stage values (one failure row per event; the handler never drops a failed request):
| Value | Meaning | Scope |
|---|---|---|
build_call |
The event could not be turned into a call. | That event alone; it is excluded before the batch is assembled. |
no_gas |
No gas coin could cover the budget. | Every event in the batch. |
execute_retry_exhausted |
Submission failed after retries. | Every event in the batch. |
on_chain_revert |
The transaction executed and reverted. It has a digest and success is false. |
Every event in the batch. |
Acknowledgement columns¶
Set only with BRIDGE_PROTOCOL_PHASES=3 and a successful destination call; empty otherwise.
| Column | Meaning |
|---|---|
ack_tx_digest |
Digest of the acknowledgement transaction on the source chain. |
ack_off_chain_time |
Seconds spent building the acknowledgement. |
ack_blockchain_processing_time |
Seconds of the acknowledgement's execute call. |
ack_client_receive_time_ms |
When the acknowledgement was confirmed. |
total_3phase_time_seconds |
ack_client_receive_time_ms minus source_event_timestamp_ms. Empty in two-phase runs or when the ack is missing. |
ack_signer |
eoa or aa. Set whenever phase 3 is configured, even if this ack failed. |
Committee columns¶
Appended only when CONSENSUS_ENABLED is on. All empty for an event without committee metadata.
| Column | Meaning |
|---|---|
consensus_height |
Committee block height the event was committed at. |
consensus_observed_at_ms |
When the committee ingested the event. Empty for an event it never ingested. |
consensus_committed_at_ms |
When the first node reported the commit. |
consensus_delivered_at_ms |
When the delivery threshold was reached and the event handed off. |
consensus_latency_ms |
Commit time minus observation time: the latency the committee adds. |
consensus_observed |
false means the committee committed an event it never observed: a forged commit, possible only past the BFT bound. Flagged UNSAFE COMMIT in the committee log. The executor still runs it. |
committee_nodes |
CONSENSUS_NODES. |
committee_faulty |
CONSENSUS_FAULTY_NODES. |
committee_byzantine |
CONSENSUS_BYZANTINE_NODES. |
committee_strategy |
The Byzantine strategy label. Quoted. |
Consensus comparison (summary.md)¶
consensus_compare.sh writes, in its output directory (default results/consensus_compare_<timestamp>/):
| Path | Contents |
|---|---|
summary.md, summary.csv |
The report, built by report in stealth_name_service/backend/consensus_compare.py. |
scenarios.txt, params.txt, env.original |
The scenarios run, the relevant .env values, and the untouched .env. |
<scenario>/rep<N>/ |
merged_results.csv, run.json, bridge_results.csv, consensus_env.txt, loadtest.log, deploy.log, event_handler.log and, with the committee on, committee_status.json and committee.log. |
summary.md is a Markdown report. Every figure is restricted to the rows of that run's own
successful source digests. Its sections, in order:
| Section | Contents |
|---|---|
| Run parameters | A collapsible block with params.txt. |
| Banners | A note when there is no baseline (percentages omitted), and a warning when BRIDGE_PROTOCOL_PHASES=3 was configured but some completed requests have no acknowledgement. |
| Overview | Per scenario: committee label, Completed (completed over sent), Committee blocks (marked with a warning below 20), Events per block (mean / max), Unsafe commits (rows with consensus_observed false), Evidence (from committee_status.json), and Acked when any scenario ran three phases. |
| End-to-end latency | Median, mean, p90 and p99 of total_bridge_time_seconds, plus the median with acknowledgement (total_3phase_time_seconds); percentage change against baseline. |
| Where the time goes | Median seconds of six consecutive stages: Detection (source event to listener), Ingest (listener to committee, consensus only), Ordering (committee ingest to commit), Delivery (commit to delivery threshold, consensus only), Relayer (hand-off to destination submission) and Chain (submission to confirmation), then the end-to-end median. |
| Committee ordering | For committee scenarios: median, p90 and max of consensus_latency_ms, in seconds. |
| Throughput | Per scenario: the rate loadtest achieved (from run.json) and completed requests per second at the destination. |
summary.csv has one row per scenario, with columns scenario, committee, sent, completed,
committee_blocks, events_per_block_mean, events_per_block_max, unsafe_commits, phase3,
acked, evidence, offered_rate_per_s, throughput_per_s, throughput_delta_pct, the
end-to-end e2e_<median|mean|p90|p99|max>_s and e2e_<...>_delta_pct, ack_median_s,
committee_<median|p90|max>_s and stage_<detection|ingest|ordering|delivery|relayer|chain>_median_s.