From: "Medvedkin, Vladimir" <vladimir.medvedkin@intel.com>
To: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>,
bruce.richardson@intel.com
Cc: dev@dpdk.org, ruifeng.wang@arm.com, nd@arm.com, stable@dpdk.org
Subject: Re: [dpdk-dev] [PATCH v2] test/lpm: reset total time
Date: Fri, 4 Oct 2019 12:14:43 +0100 [thread overview]
Message-ID: <ab0ad281-3f7a-2657-d654-a655aac5449d@intel.com> (raw)
In-Reply-To: <20191001053253.32327-1-honnappa.nagarahalli@arm.com>
Acked-by: Vladimir Medvedkin <vladimir.medvedkin@intel.com>
Tested-by: Vladimir Medvedkin <vladimir.medvedkin@intel.com>
On 01/10/2019 06:32, Honnappa Nagarahalli wrote:
> total_time needs to be reset to measure the cycles for delete API.
>
> Fixes: af75078fece3 ("first public release")
> Cc: stable@dpdk.org
>
> Signed-off-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
> Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
> ---
> v2 - Corrected checkpatch issue
>
> app/test/test_lpm_perf.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> 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);
--
Regards,
Vladimir
next prev parent reply other threads:[~2019-10-04 11:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-01 5:23 [dpdk-dev] [PATCH] " Honnappa Nagarahalli
2019-10-01 5:32 ` [dpdk-dev] [PATCH v2] " Honnappa Nagarahalli
2019-10-04 11:14 ` Medvedkin, Vladimir [this message]
2019-10-24 8:06 ` [dpdk-dev] [dpdk-stable] " David Marchand
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ab0ad281-3f7a-2657-d654-a655aac5449d@intel.com \
--to=vladimir.medvedkin@intel.com \
--cc=bruce.richardson@intel.com \
--cc=dev@dpdk.org \
--cc=honnappa.nagarahalli@arm.com \
--cc=nd@arm.com \
--cc=ruifeng.wang@arm.com \
--cc=stable@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).