public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Derek Morton <derek.j.morton@intel.com>
To: intel-gfx@lists.freedesktop.org
Cc: thomas.wood@intel.com
Subject: [PATCH i-g-t] tests/gem_exec_nop: Improved test run time
Date: Tue,  3 Nov 2015 16:29:45 +0000	[thread overview]
Message-ID: <1446568185-675-1-git-send-email-derek.j.morton@intel.com> (raw)

Reduced the Sleep period to 200mS and reduced the repetition count to 7
to decrease the test run time significantly.

Also fixed a non ascii character that messed up the results table formatting.

Signed-off-by: Derek Morton <derek.j.morton@intel.com>
---
 tests/gem_exec_nop.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/gem_exec_nop.c b/tests/gem_exec_nop.c
index a287d08..5028145 100644
--- a/tests/gem_exec_nop.c
+++ b/tests/gem_exec_nop.c
@@ -133,7 +133,7 @@ static void loop(int fd, uint32_t handle, unsigned ring_id, const char *ring_nam
 	gem_sync(fd, handle);
 
 	for (count = 1; count <= SLOW_QUICK(1<<17, 1<<4); count <<= 1) {
-		const int reps = 13;
+		const int reps = 7;
 		igt_stats_t stats;
 		int n;
 
@@ -142,7 +142,7 @@ static void loop(int fd, uint32_t handle, unsigned ring_id, const char *ring_nam
 		for (n = 0; n < reps; n++) {
 			struct timespec start, end;
 			int loops = count;
-			sleep(1); /* wait for the hw to go back to sleep */
+			usleep(200000); /* wait 200mS for the hw to go back to sleep */
 			clock_gettime(CLOCK_MONOTONIC, &start);
 			while (loops--)
 				do_ioctl(fd, DRM_IOCTL_I915_GEM_EXECBUFFER2, &execbuf);
@@ -151,7 +151,7 @@ static void loop(int fd, uint32_t handle, unsigned ring_id, const char *ring_nam
 			igt_stats_push(&stats, elapsed(&start, &end, count));
 		}
 
-		igt_info("Time to exec x %d:		%7.3fµs (ring=%s)\n",
+		igt_info("Time to exec x %d:		%7.3fuS (ring=%s)\n",
 			 count, igt_stats_get_trimean(&stats)/1000, ring_name);
 		fflush(stdout);
 
-- 
1.9.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

             reply	other threads:[~2015-11-03 16:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-03 16:29 Derek Morton [this message]
2015-11-03 16:39 ` [PATCH i-g-t] tests/gem_exec_nop: Improved test run time Chris Wilson
2015-11-04 13:40   ` Morton, Derek J
2015-11-04 13:55     ` Chris Wilson
2015-11-04 14:10       ` Morton, Derek J
2015-11-04 14:24         ` Chris Wilson
2015-11-04 14:34           ` Tvrtko Ursulin
2015-11-04 14:46             ` Morton, Derek J
2015-11-04 15:07               ` Tvrtko Ursulin

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=1446568185-675-1-git-send-email-derek.j.morton@intel.com \
    --to=derek.j.morton@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=thomas.wood@intel.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