DPDK patches and discussions
 help / color / mirror / Atom feed
From: Jananee Parthasarathy <jananeex.m.parthasarathy@intel.com>
To: dev@dpdk.org
Cc: reshma.pattan@intel.com, rsanford@akamai.com,
	Jananee Parthasarathy <jananeex.m.parthasarathy@intel.com>
Subject: [dpdk-dev] [PATCH] test: reduce duration for timer autotest
Date: Sat, 22 Sep 2018 12:55:11 +0100	[thread overview]
Message-ID: <1537617311-1092-1-git-send-email-jananeex.m.parthasarathy@intel.com> (raw)

Reduced the test duration of timer_autotest.
The number of iterations was very large to test the timer functionality.
Although the method to identify random timers can be different,
many iterations would be needed for stress or performance test only.

Signed-off-by: Jananee Parthasarathy <jananeex.m.parthasarathy@intel.com>
---
 test/test/test_timer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/test/test_timer.c b/test/test/test_timer.c
index e2aab5308..d625f1f4d 100644
--- a/test/test/test_timer.c
+++ b/test/test/test_timer.c
@@ -358,7 +358,7 @@ timer_stress2_main_loop(__attribute__((unused)) void *arg)
 				timer_stress2_cb, NULL);
 
 	/* pick random timer to reset, stopping them first half the time */
-	for (i = 0; i < 100000; i++) {
+	for (i = 0; i < NB_STRESS2_TIMERS; i++) {
 		int r = rand() % NB_STRESS2_TIMERS;
 		if (i % 2)
 			rte_timer_stop(&timers[r]);
-- 
2.13.6

             reply	other threads:[~2018-09-22 12:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-22 11:55 Jananee Parthasarathy [this message]
2018-10-10 16:24 ` Pattan, Reshma
2018-10-22  7:43   ` Parthasarathy, JananeeX M
2018-10-24 12:21     ` Pattan, Reshma
2018-11-05 16:04   ` Pattan, Reshma

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=1537617311-1092-1-git-send-email-jananeex.m.parthasarathy@intel.com \
    --to=jananeex.m.parthasarathy@intel.com \
    --cc=dev@dpdk.org \
    --cc=reshma.pattan@intel.com \
    --cc=rsanford@akamai.com \
    /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).