Skip to content

Commit c367316

Browse files
Merge branch 'feat/txpool-latency-qps' of https://github.com/noku-team/assertoor into feat/txpool-latency-qps
2 parents 0d4cc69 + 906f6d4 commit c367316

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

pkg/coordinator/tasks/tx_pool_latency_analysis/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ The `tx_pool_latency_analysis` task evaluates latency of transaction processing
2323
- **`tx_count`**:
2424
The total number of transactions sent.
2525

26+
- **`min_latency_mus`**:
27+
The min latency of the transactions in microseconds.
28+
2629
- **`max_latency_mus`**:
2730
The max latency of the transactions in microseconds.
2831

pkg/coordinator/tasks/tx_pool_throughput_analysis/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ The `tx_pool_throughput_analysis` task evaluates the throughput of transaction p
2323
- **`tx_count`**:
2424
The total number of transactions sent.
2525

26-
- **`max_latency_mus`**:
27-
The max latency of the transactions in microseconds.
26+
- **`mean_tps_throughput`**:
27+
The mean throughput (tps)
2828

2929
### Defaults
3030

pkg/coordinator/tasks/tx_pool_throughput_analysis/task.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,16 +280,16 @@ func (t *Task) Execute(ctx context.Context) error {
280280
// Calculate statistics
281281
processed_tx_per_second := float64(sentTxCount) / lastMeasureTime.Seconds()
282282

283-
t.ctx.Outputs.SetVar("mean_throughput", processed_tx_per_second)
283+
t.ctx.Outputs.SetVar("mean_tps_throughput", processed_tx_per_second)
284284
t.logger.Infof("Processed %d transactions in %.2fs, mean throughput: %.2f tx/s", sentTxCount, lastMeasureTime.Seconds(), processed_tx_per_second)
285285
t.ctx.Outputs.SetVar("tx_count", totNumberOfTxes)
286286
t.logger.Infof("Sent %d transactions in %.2fs", sentTxCount, lastMeasureTime.Seconds())
287287

288288
t.ctx.SetResult(types.TaskResultSuccess)
289289

290290
outputs := map[string]interface{}{
291-
"tx_count": totNumberOfTxes,
292-
"mean_throughput": processed_tx_per_second,
291+
"tx_count": totNumberOfTxes,
292+
"mean_tps_throughput": processed_tx_per_second,
293293
}
294294

295295
outputsJSON, _ := json.Marshal(outputs)

0 commit comments

Comments
 (0)