struct BenchmarkResult {
/// TLS upload speed
tls: Speed,
- /// SHA256 checksum comptation speed
+ /// SHA256 checksum computation speed
sha256: Speed,
/// ZStd level 1 compression speed
compress: Speed,
) -> Result<(), Error> {
let mut data = serde_json::to_value(benchmark_result)?;
- let schema = BenchmarkResult::API_SCHEMA;
+ let schema = &BenchmarkResult::API_SCHEMA;
let render_speed = |value: &Value, _record: &Value| -> Result<String, Error> {
match value["speed"].as_f64() {
.header("TLS (maximal backup upload speed)")
.right_align(false).renderer(render_speed))
.column(ColumnConfig::new("sha256")
- .header("SHA256 checksum comptation speed")
+ .header("SHA256 checksum computation speed")
.right_align(false).renderer(render_speed))
.column(ColumnConfig::new("compress")
.header("ZStd level 1 compression speed")