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/21 08:30:36 UTC

[avro] branch avro-3464-better-output-format-for-benchmark-example created (now 8bdcf3e)

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

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


      at 8bdcf3e  AVRO-3464: Print a header and use tabs as separators

This branch includes the following new commits:

     new 8bdcf3e  AVRO-3464: Print a header and use tabs as separators

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[avro] 01/01: AVRO-3464: Print a header and use tabs as separators

Posted by mg...@apache.org.
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 <mg...@apache.org>
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 <mg...@apache.org>
---
 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)?;