From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3730143C5F; Wed, 6 Mar 2024 16:06:51 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2129342DE4; Wed, 6 Mar 2024 16:06:51 +0100 (CET) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2040.outbound.protection.outlook.com [40.107.236.40]) by mails.dpdk.org (Postfix) with ESMTP id F040840A6D for ; Wed, 6 Mar 2024 16:06:49 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Hlv/eAwNGV301DF5OVoso4f8Eyl1UmwQz2XTQXguJZgfP/W2pbEPMZZ5T/E1JBD52TtxwGUshvU7nzntHKZa+vv+nYzUT/+AqWfM0b3ConpNEjBkVbdn/I7J7L+Kg78GRf2DD3xXY4r0Se4k8onIdF6MJ2LW7lCcgLPRHcNc4qTlzdgrYLF8uaVv11u7Y7Ae2PQd7JvyFDvUpM78zoLFzZpZvoHZyGTBgfrOuLpBcSV8mGNlIZOi09iSA/KmOokhVCHz85EeKUDh17xwagTeAbPgjKaLAmjjqSZ0TmRlfsy1WUWxrphy4gbMZZVBJf7Dwz374yImN5aYIVga/HViTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=M6iZg+OY5YJQ12bHoVEy++r0jCAoO+JuLIZuhf8AcR8=; b=FsietL4/Uy1siBwEJuX2GND4ysY95sYiH5UhjGKRvj7cTCz7E2TCu7QxZDRDZJkGHchC+TbBJnJusoGiFkvkSrU8zpKX5WnKV0+lt3nUOr3paDXNV5xUc90uisqO4zAIE/1IjpLy8MHE5VhKcndskldE9QexKixD0KxR3aAbwZQgjmL+dngcxnSyt8UrgU9L+JRd1bxCGra3RHmUwwLmZo6iTTe1ZPEY/RxC9l4ctI9PiATRy0NuxKcjzewKxmNI+x03RXqdT/9WDlHEBv2Ndr/ctwFss+uUNTXi1cThQLe+VbgJNfOXVAfUtbJdRASqT1hLRmYND9i6/GBdDwc5kw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=dpdk.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=M6iZg+OY5YJQ12bHoVEy++r0jCAoO+JuLIZuhf8AcR8=; b=5HnWeArtyQfCy+0CyjH451nOWONgcyUDj9xwX75JLd5V32Pzh+FAygbSjVM6hNiQofkpBasL/ejK76sFOcNY4jtKF0EzPa/0EIKJJzXxaWO5Pww1//f73N7ytVtsmduMtf1xleFC2pLqqYrEitTlp5vhDAA/0QsWNBtTmfUaHZs= Received: from PA7P264CA0153.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:36c::6) by SN7PR12MB6984.namprd12.prod.outlook.com (2603:10b6:806:260::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.41; Wed, 6 Mar 2024 15:06:45 +0000 Received: from SA2PEPF000015CD.namprd03.prod.outlook.com (2603:10a6:102:36c:cafe::e9) by PA7P264CA0153.outlook.office365.com (2603:10a6:102:36c::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.39 via Frontend Transport; Wed, 6 Mar 2024 15:06:45 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by SA2PEPF000015CD.mail.protection.outlook.com (10.167.241.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7362.11 via Frontend Transport; Wed, 6 Mar 2024 15:06:44 +0000 Received: from BLR-5CG134626B.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Wed, 6 Mar 2024 09:06:42 -0600 From: Vipin Varghese To: , CC: , Subject: [PATCH v2] app/dma-perf: add average latency per worker Date: Wed, 6 Mar 2024 20:36:28 +0530 Message-ID: <20240306150628.1417-1-vipin.varghese@amd.com> X-Mailer: git-send-email 2.41.0.windows.3 In-Reply-To: <20231219164021.858-1-vipin.varghese@amd.com> References: <20231219164021.858-1-vipin.varghese@amd.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SA2PEPF000015CD:EE_|SN7PR12MB6984:EE_ X-MS-Office365-Filtering-Correlation-Id: e002bba1-ecd8-4a32-bd54-08dc3def09ae X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xUDRO4T2XQpqRxs9Vek+Y4H5k4/nIB/1t+E8F0uvMs6hu6HyDPH6+OGh8PLVxwA5kGT2qVCQ1eM0++Kyo1Ao9oqAyqFfRUD4SHiWxS0AYoq8j/cZaByVh4OSdj/oErOboDFU0I8T804knJIZzsGr/3OS2J3yWrMbCUu4t6u1JO4CHTLCRRdbdkHypC0dRyx/AqwXFe29BdgRSAE2PldUhkOqobvX/ZpURIu/Bw0biG/SKJrzl8KjRqI4S7FsTTieEMcyLfFUdzomuhmqcVeG37oH3rkCAeDUjC2d/JPQfCeU/DcGbFNAhZpC6PLSDflfwLcg2QTC8LKoASPWePolofuXXgfWs5CJlCiWFWBNl6QkS+RgTtmWSn8b/gTxAa+4DZHRqGo7yOYPdUFHhdPhsCQJAsiwMv6803zlaS9+xm0ZaVy5VllmOLTyu4GBE0yVhnFQhRnOUCbAZpk8WJDQzewPbvFYtJ8AP4n7Cak1Kg5g3WE2LR/Yzgach1vJZHTn6UC3PKQHGyhZ5wPMj8PvK5A2Q2Rzk/z0BVxf2kdVOJTIRTJnt5ZtPLC/Nzxk0BxLKMqAiEkOpXa061j6kie756egOnkMFsujljanBGsUWugOCFJsrVpyJ+PbniWG5et5IBv1CD9HnFNdyvomp09bqsHa2VGwFDSc4MqlTOUdmu4LqB/qBF4E/agdyFjMtvIZnzm/Ner6yjO2oyjll9tIvO6a96jO+gIM7mUOkEhpMfMAVFg62Lok6tK9VgmjL68o X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230031)(376005)(36860700004)(82310400014); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Mar 2024 15:06:44.7911 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e002bba1-ecd8-4a32-bd54-08dc3def09ae X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: SA2PEPF000015CD.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB6984 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Modify the user display data with total average latency per worker. Signed-off-by: Vipin Varghese V2 Changes: - keep one-digit precision is enough, suggested by Chengwen --- app/test-dma-perf/benchmark.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/test-dma-perf/benchmark.c b/app/test-dma-perf/benchmark.c index 9b1f58c78c..2e110d0d98 100644 --- a/app/test-dma-perf/benchmark.c +++ b/app/test-dma-perf/benchmark.c @@ -470,7 +470,8 @@ mem_copy_benchmark(struct test_configure *cfg, bool is_dma) bandwidth_total += bandwidth; avg_cycles_total += avg_cycles; } - printf("\nTotal Bandwidth: %.3lf Gbps, Total MOps: %.3lf\n", bandwidth_total, mops_total); + printf("\nAverage Cycles/op per worker: %.1f, Total Bandwidth: %.3lf Gbps, Total MOps: %.3lf\n", + (avg_cycles_total * (float) 1.0) / nb_workers, bandwidth_total, mops_total); snprintf(output_str[MAX_WORKER_NB], MAX_OUTPUT_STR_LEN, CSV_TOTAL_LINE_FMT, cfg->scenario_id, nr_buf, memory * nb_workers, avg_cycles_total / nb_workers, bandwidth_total, mops_total); -- 2.40.1