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 5AD9843746; Tue, 19 Dec 2023 17:40:51 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 45EC242E11; Tue, 19 Dec 2023 17:40:51 +0100 (CET) Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on2056.outbound.protection.outlook.com [40.107.95.56]) by mails.dpdk.org (Postfix) with ESMTP id 4910342DED; Tue, 19 Dec 2023 17:40:48 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gAMI0VTEq+hyQt89sfhWfi08yIrwxRjx+6u629JO5lEP2xSL1IbAVgYQEBtXZpz4A38Oal8IDe+jkbqYZiwPLzaBqhisApWCuk9wz9wO9CufFQXPjXO82E9k4Mu5CgJ6ivgU6H0MCtFu8vRb0DjBcle4tUThlUSqPtQ3Snzcpouh9ALk0bweNRBocngn7fSSrzXC5VI1ZLUrmkkprLULZfg980IbELS7OXTzS8tRC4zn+0z2VtMtr8SYUvrGtlCPQsC7IHCjAJBsE7YPMCchVrOsa8CAwo+k7aDRYMiRzsXCOVGH2fXroaJm7oVBjbz6Dd6XqFerwI+0SRfc+HdT8g== 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=58JxiAnJRmNBI+asQmKKb3VJNNTwzhmMIs9+rC3ogu8=; b=MwOMUouMhjK0E+OTXfUNZKxKVywGix7bIDtgrMf7aZmYIxEJ3ipoev49Kip3cCtZdU8dujw8wZUFQRX/dyspSBX5MVFb8fYXsZ6iOKGo4lnjZmfZEWVE3qXH68X1Lty8wnjZKNaXRx3Km/7Wx89h9zqKJU3cN/noFRhFs1QBMCGmKf7/DaTPOnmKZWsqW24lkzu6uD5wy1QcF17iutg1hOBHC1HdpQfZSGI2NUl5cchhRI97B+x7ETfcc3AkILD3XHbOe2VGtvOC3khGCTZmLx15vo48fn9+RnQ5rQiUkVjHg2SDzyiNwy3qd6Di7XDEm4batJ2baKx5JxECxMrwMQ== 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=58JxiAnJRmNBI+asQmKKb3VJNNTwzhmMIs9+rC3ogu8=; b=MXy96DM9/IIhI4udlSt0P/SU2js1GGBvdoh70GOLyX58Vf3pM5FxLr4vzBba/11J2tDmFMO8lGMd0PuGR4NrOy9DsI3EGSZ0EKPWB9feMIKhRiLaNPH8fNOtvOy5/h/UOVZQtq4+B9ln9QNGhkEEXBXGiYX0n5Jug0MWT8d5nlQ= Received: from BLAPR03CA0060.namprd03.prod.outlook.com (2603:10b6:208:32d::35) by BL3PR12MB6596.namprd12.prod.outlook.com (2603:10b6:208:38f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.38; Tue, 19 Dec 2023 16:40:44 +0000 Received: from MN1PEPF0000F0E2.namprd04.prod.outlook.com (2603:10b6:208:32d:cafe::72) by BLAPR03CA0060.outlook.office365.com (2603:10b6:208:32d::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7113.18 via Frontend Transport; Tue, 19 Dec 2023 16:40:44 +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 MN1PEPF0000F0E2.mail.protection.outlook.com (10.167.242.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7113.14 via Frontend Transport; Tue, 19 Dec 2023 16:40: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.34; Tue, 19 Dec 2023 10:40:41 -0600 From: Vipin Varghese To: , , , , Subject: [PATCH] app/dma-perf: add average latency per worker Date: Tue, 19 Dec 2023 22:10:21 +0530 Message-ID: <20231219164021.858-1-vipin.varghese@amd.com> X-Mailer: git-send-email 2.41.0.windows.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN1PEPF0000F0E2:EE_|BL3PR12MB6596:EE_ X-MS-Office365-Filtering-Correlation-Id: 98be4198-fe66-4d99-e936-08dc00b13f18 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: J9N8iLueERC1c5OIs/OIyg+DFeArUFjk6O/r9SAuHWKrNG51kG9Pv7x4bdWs6rDD7AN3F2+/DHNSgdPTGYQNtQ+vwNJdJod0x+IK3TiPkUn2yKd198/WAROPOKXuDCsN/qCin23W48q6PqCtpnCYBObSKPpEdbQf13Xxhx2vQvTEfWHka+/91g2HLQ/QRRFt0nmRSi7PavX57vz26Xo3V21C27RxzhNwq36Kx+5VHXW1cPOQD4rInia6ueqz6nXMtdwP1jfmW/ZXVfByoLJ3HzSrUK5ruBTbDbIV0gP5Ftm+M2uMuN4E6Zz7Hvp/O2I9/Rty4grsGXCVjtP8cBeQeiE3usmfP3OW5PmVvnJkNbPZs7tdoOq+0FIlP54sGPTMsnK+dvNAUrCZICtsXNdDAtDoqooCW0ulBUYaz2u03sKXr0BqWbSBY2wQ3mlNT9Z31NRFHnR/zVRuQNo3+ObRxwVBtP8CFvjScPPDmy7xCupbiNZV5MgOl0JYJX6TkUUzmy/GSr6YJIxhmz2AvpiZr15TsK4pBnwiHnJvBKUtHLNpC+H71PsMa3CMMBKaJlzoWf+PGjT4kEx2DU55166z84HCaljYDR4tn1iMhUAWwt8mOOeoqZdEdUxw/6u8i0jhItLR12iTU0/ndc9BUgxSKK7ViWerI4XKlhZQwgbyaq5JYzRvaBCnStpdLCX3v2lZ1mZLmaUWBLKCPZKD/BSsJYjTvQyMck79thnel8tEm9B97NWbsozxPykXccmYjT9T54H6U62zoWMg41pPuwnbaA== 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)(4636009)(376002)(39860400002)(346002)(396003)(136003)(230922051799003)(64100799003)(1800799012)(82310400011)(451199024)(186009)(40470700004)(36840700001)(46966006)(44832011)(8936002)(82740400003)(36860700001)(5660300002)(47076005)(7696005)(6666004)(8676002)(2906002)(40480700001)(83380400001)(316002)(70586007)(4744005)(6636002)(110136005)(336012)(426003)(70206006)(40460700003)(26005)(41300700001)(356005)(81166007)(478600001)(1076003)(86362001)(16526019)(2616005)(36756003)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Dec 2023 16:40:44.7107 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 98be4198-fe66-4d99-e936-08dc00b13f18 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: MN1PEPF0000F0E2.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL3PR12MB6596 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 --- 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..8b6886af62 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: %.2lf, Total Bandwidth: %.3lf Gbps, Total MOps: %.3lf\n", + (float) avg_cycles_total / 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.34.1