Skip to content

Commit

Permalink
Update README and rename Mean to Average
Browse files Browse the repository at this point in the history
  • Loading branch information
Angel-Petrov committed Feb 28, 2024
1 parent 8ad31dc commit a79fc9e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,19 +112,21 @@ At the end of all benchmarks gomu gomu will collect the results into a single js

- `users`: The amount of goose users used to do the benchmarks, changed by `concurrency`

- `all_bench_report`: A report over all benchmarks done
- `all_bench_report`: A report over all benchmarks done, has a portion of metrics that `benches` has

- `benches`: A array of reports for all benchmarks

- `name`: The name of the benchmark
- `amount`: How many times this benchmark was ran
- `metrics`: An array of metrics over the whole benchmark
- `metrics`: Metrics over the whole benchmark

- `name`: The name of the metric
- `unit`: The unit of the metric, empty when there is no unit
- `value`: The metrics value, a number

- For floats, `Infinite` and `NaN` are not JSON numbers and thus will be turned into `null`
- Values gotten from submission time are calculated from the latency to add a new transaction to the node
- Values gotten from verification time are calculated from the latency to get the transaction receipt after the transactions have been processed

- `last_x_blocks_metrics`: Metrics over the last blocks of the benchmark

Expand Down
4 changes: 2 additions & 2 deletions src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ impl BenchmarkReport {
value: requests.min_time.into(),
},
MetricResult {
name: "Mean Submission Time",
name: "Average Submission Time",
unit: "milliseconds",
value: (requests.total_time as f64 / scenario.counter as f64).into(),
},
Expand All @@ -186,7 +186,7 @@ impl BenchmarkReport {
value: verification_requests.raw_data.minimum_time.into(),
},
MetricResult {
name: "Mean Verification Time",
name: "Average Verification Time",
unit: "milliseconds",
value: (verification_requests.raw_data.total_time as f64 / scenario.counter as f64)
.into(),
Expand Down

0 comments on commit a79fc9e

Please sign in to comment.