From patchwork Tue Oct 1 05:23:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Honnappa Nagarahalli X-Patchwork-Id: 174801 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp8073705ill; Mon, 30 Sep 2019 22:24:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqx7cjF50pXBURZPt6LTuqBCYDIpPZ+3/TeIn7IzCYk71IcJFf5BvKpFF283ajp7m+A0Mjyi X-Received: by 2002:a17:906:d8c8:: with SMTP id re8mr22595809ejb.130.1569907459777; Mon, 30 Sep 2019 22:24:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569907459; cv=none; d=google.com; s=arc-20160816; b=gJ4Ef+aBMUrtUBluF3ZGIBEdsdR5F4IoK6LNAE4aZRSI1cW+0SMcc2yiFHdaZnQGwS XZ3+ABF58RkNq236oqTWOk5CMs9nj4NeT+iA8qk1tiuO7P6anf38HRRhsLJA78OL+BjV +PWn/NYG7e2CC6S6EgVc7MCnyvGbvRfeCUi//q6qIyrUYMqGY4YbV5X4nQYP4pOyJDi2 5vCrP1R5Irbfr/fK8rktZO8ZTholbizFenc1AlmPf6/E8a9677gs2XVxZBSsRyeV29yp AzM7G4eUZQCoLv4rK4lWCvWgB0j5TgjQbwd8jl7t3fUf8CskCgp1fuu3swgG+UmsK4rz sggw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:message-id:date:cc:to :from; bh=/DfhaO1oDUODKvMOZkpEbFNgcv5W/dQRCsRTt7LZmjA=; b=gUS5y8dGGCNwjlIpG/Mta6WAZk/H3Zq6lk3G44meUzzTR4+H5NiaayXlkU4YtV6c4T LnIJHnNBZO9jb0mcngA4HWXTbb+AChpRRcLd2ddf133oUtgasX7zfHgOJjM6WdZhKCxi 8DP7UIPlDgClJ57D0NaDF03gQLOpJyMDSJA4SiBO3BqY5F14b65ws7IS0UGfaeE7LWkZ y4iwLqa72m30+TBQg5EistM1MV3qT/+c/MUl5ICKACr3JA3jhzSuqDG5MC4gGx5fejal 4Jnny3EfaBaOlvQKJDPsBtlMkn1DNYu1WOXjJrKGcO4rvrxFdDaDbQUcOOab6rJlwczm O2Ig== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id n13si8090294ejr.34.2019.09.30.22.24.19; Mon, 30 Sep 2019 22:24:19 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6F0685B32; Tue, 1 Oct 2019 07:24:17 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by dpdk.org (Postfix) with ESMTP id DC32B2C02; Tue, 1 Oct 2019 07:24:15 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 33A131000; Mon, 30 Sep 2019 22:24:15 -0700 (PDT) Received: from qc2400f-1.austin.arm.com (qc2400f-1.austin.arm.com [10.118.12.34]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id CEA143F534; Mon, 30 Sep 2019 22:26:52 -0700 (PDT) From: Honnappa Nagarahalli To: bruce.richardson@intel.com, vladimir.medvedkin@intel.com Cc: dev@dpdk.org, honnappa.nagarahalli@arm.com, stable@dpdk.org Date: Tue, 1 Oct 2019 00:23:58 -0500 Message-Id: <20191001052358.32157-1-honnappa.nagarahalli@arm.com> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-dev] [PATCH] test/lpm: reset total time 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" total_time needs to be reset to measure the cycles for delete API. Fixes: af75078fece3 ("first public release") Cc: stable@dpdk.org Change-Id: I446e4724a9fe2f8ac2cb8f5cc167998d9fc33df8 Signed-off-by: Honnappa Nagarahalli Reviewed-by: Ruifeng Wang --- app/test/test_lpm_perf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/app/test/test_lpm_perf.c b/app/test/test_lpm_perf.c index a9f02d983..9fa02f9df 100644 --- a/app/test/test_lpm_perf.c +++ b/app/test/test_lpm_perf.c @@ -937,7 +937,7 @@ test_lpm_perf(void) (double)total_time / ((double)ITERATIONS * BATCH_SIZE), (count * 100.0) / (double)(ITERATIONS * BATCH_SIZE)); - /* Delete */ + /* Measure Delete */ status = 0; begin = rte_rdtsc(); @@ -947,7 +947,7 @@ test_lpm_perf(void) large_route_table[i].depth); } - total_time += rte_rdtsc() - begin; + total_time = rte_rdtsc() - begin; printf("Average LPM Delete: %g cycles\n", (double)total_time / NUM_ROUTE_ENTRIES);