You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@avro.apache.org by mg...@apache.org on 2022/03/22 08:05:52 UTC

[avro] branch branch-1.11 updated: AVRO-3464: Print a header and use tabs as separators (#1614)

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

mgrigorov pushed a commit to branch branch-1.11
in repository https://gitbox.apache.org/repos/asf/avro.git


The following commit(s) were added to refs/heads/branch-1.11 by this push:
     new 0531004  AVRO-3464: Print a header and use tabs as separators (#1614)
0531004 is described below

commit 0531004a3edb01a428959c09daf539a8807cd24a
Author: Martin Grigorov <ma...@users.noreply.github.com>
AuthorDate: Tue Mar 22 10:05:28 2022 +0200

    AVRO-3464: Print a header and use tabs as separators (#1614)
    
    Signed-off-by: Martin Tzvetanov Grigorov <mg...@apache.org>
    (cherry picked from commit 3797bbb6f844d40c58324474e9d7d8e1ea99e62b)
---
 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)?;