This is an automated email from the ASF dual-hosted git repository.

mgrigorov pushed a commit to branch 
avro-3464-better-output-format-for-benchmark-example
in repository https://gitbox.apache.org/repos/asf/avro.git

commit 8bdcf3e4ac6bef6750389d53ffb1a122e61b25a6
Author: Martin Tzvetanov Grigorov <[email protected]>
AuthorDate: Mon Mar 21 10:29:58 2022 +0200

    AVRO-3464: Print a header and use tabs as separators
    
    Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
---
 lang/rust/avro/examples/benchmark.rs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lang/rust/avro/examples/benchmark.rs 
b/lang/rust/avro/examples/benchmark.rs
index 7e3a0c4..1829d21 100644
--- a/lang/rust/avro/examples/benchmark.rs
+++ b/lang/rust/avro/examples/benchmark.rs
@@ -97,7 +97,7 @@ fn benchmark(
         (seconds(total_duration_write), seconds(total_duration_read));
 
     println!(
-        "{},{},{},{},{}",
+        "{}\t\t{}\t\t{}\t\t{}\t\t{}",
         count, runs, big_or_small, total_write_secs, total_read_secs
     );
     Ok(())
@@ -140,6 +140,7 @@ fn main() -> anyhow::Result<()> {
     let big_record = big_record.into();
 
     println!();
+    println!("Count\t\tRuns\t\tBig/Small\tTotal write secs\tTotal read secs");
 
     benchmark(&small_schema, &small_record, "Small", 10_000, 1)?;
     benchmark(&big_schema, &big_record, "Big", 10_000, 1)?;

Reply via email to