From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 565BBA09EE; Fri, 11 Dec 2020 18:31:44 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 83E90C974; Fri, 11 Dec 2020 18:31:25 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 85636AC9B for ; Fri, 11 Dec 2020 18:31:22 +0100 (CET) IronPort-SDR: nXlAevlbVvqS+XkDJ3knGfKIDC96ScgyHBFUBRvWdQgnqEwUruyI6o1MLXyW8Z2nNdkrZ8KrPb kTZHK9hpJdtw== X-IronPort-AV: E=McAfee;i="6000,8403,9832"; a="238575051" X-IronPort-AV: E=Sophos;i="5.78,412,1599548400"; d="scan'208";a="238575051" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Dec 2020 09:31:21 -0800 IronPort-SDR: rB8dKhZGnhXadXaTnuqN1lj0DGiGPeEEwEHH/nwhNDyXFI8GtIBbPJgNx34OA0hFsNmLoYmFh5 qGV94tgzezXQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,412,1599548400"; d="scan'208";a="339240427" Received: from silpixa00400355.ir.intel.com (HELO silpixa00400355.ger.corp.intel.com) ([10.237.223.148]) by orsmga006.jf.intel.com with ESMTP; 11 Dec 2020 09:31:20 -0800 From: Ciara Power To: dev@dpdk.org Cc: declan.doherty@intel.com, akhil.goyal@nxp.com, Ciara Power Date: Fri, 11 Dec 2020 17:31:12 +0000 Message-Id: <20201211173114.1924772-3-ciara.power@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201211173114.1924772-1-ciara.power@intel.com> References: <20201211173114.1924772-1-ciara.power@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 2/4] test/cryptodev: improve csv output for perf tests X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The csv outputs for performance tests were not easily consumed, due to unnecessary whitespaces and capitals. The delimiter is modified to now be "," instead of ";" which was present in some cases. Some unnecessary values were also removed from the output. Signed-off-by: Ciara Power --- app/test-crypto-perf/cperf_test_latency.c | 13 +++++-------- app/test-crypto-perf/cperf_test_throughput.c | 12 ++++++------ 2 files changed, 11 insertions(+), 14 deletions(-) diff --git a/app/test-crypto-perf/cperf_test_latency.c b/app/test-crypto-perf/cperf_test_latency.c index c2590a4dcf..f3c09b8c1c 100644 --- a/app/test-crypto-perf/cperf_test_latency.c +++ b/app/test-crypto-perf/cperf_test_latency.c @@ -309,18 +309,15 @@ cperf_latency_test_runner(void *arg) if (ctx->options->csv) { if (rte_atomic16_test_and_set(&display_once)) - printf("\n# lcore, Buffer Size, Burst Size, Pakt Seq #, " - "cycles, time (us)"); + printf("\n#buffer_size(b),burst_size,time(us)"); for (i = 0; i < ctx->options->total_ops; i++) { - printf("\n%u;%u;%u;%"PRIu64";%"PRIu64";%.3f", - ctx->lcore_id, ctx->options->test_buffer_size, - test_burst_size, i + 1, - ctx->res[i].tsc_end - ctx->res[i].tsc_start, + printf("\n%u,%u,%.3f", + ctx->options->test_buffer_size, + test_burst_size, tunit * (double) (ctx->res[i].tsc_end - - ctx->res[i].tsc_start) - / tsc_hz); + - ctx->res[i].tsc_start) / tsc_hz); } } else { diff --git a/app/test-crypto-perf/cperf_test_throughput.c b/app/test-crypto-perf/cperf_test_throughput.c index f30f7d5c2c..a841a890b9 100644 --- a/app/test-crypto-perf/cperf_test_throughput.c +++ b/app/test-crypto-perf/cperf_test_throughput.c @@ -294,13 +294,13 @@ cperf_throughput_test_runner(void *test_ctx) cycles_per_packet); } else { if (rte_atomic16_test_and_set(&display_once)) - printf("#lcore id,Buffer Size(B)," - "Burst Size,Enqueued,Dequeued,Failed Enq," - "Failed Deq,Ops(Millions),Throughput(Gbps)," - "Cycles/Buf\n\n"); + printf("#lcore_id,buffer_size(b)," + "burst_size,enqueued,dequeued,failed_enq," + "failed_deq,ops(millions),throughput(gbps)," + "cycles_per_buf\n\n"); - printf("%u;%u;%u;%"PRIu64";%"PRIu64";%"PRIu64";%"PRIu64";" - "%.3f;%.3f;%.3f\n", + printf("%u,%u,%u,%"PRIu64",%"PRIu64",%"PRIu64",%"PRIu64"," + "%.3f,%.3f,%.3f\n", ctx->lcore_id, ctx->options->test_buffer_size, test_burst_size, -- 2.25.1