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 adccd2f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
20 changes: 14 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,19 +112,27 @@ 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
- Average TPS
- Average Extrinsics per block
- Total/Min/Max/Average Submission Time
- Total/Min/Max/Average Verification Time
- Failed Transaction Submissions
- Failed Transactions Verifications
- With these being stored as:

- For floats, `Infinite` and `NaN` are not JSON numbers and thus will be turned into `null`
- `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`

- `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 adccd2f

Please sign in to comment.