Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Feb 2010 22:53:24 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 174286 for review
Message-ID:  <201002032253.o13MrOD6030480@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/chv.cgi?CH=174286

Change 174286 by rwatson@rwatson_vimage_client on 2010/02/03 22:52:48

	Always do one "warmup" run of every test before the measured loops.

Affected files ...

.. //depot/projects/trustedbsd/capabilities/src/tools/tools/syscall_timing/syscall_timing.c#15 edit

Differences ...

==== //depot/projects/trustedbsd/capabilities/src/tools/tools/syscall_timing/syscall_timing.c#15 (text+ko) ====

@@ -860,6 +860,10 @@
 		if (the_test == NULL)
 			usage();
 
+		/*
+		 * Run one warmup, then do the real thing (loops) times.
+		 */
+		the_test->t_func(iterations);
 		for (k = 0; k < loops; k++) {
 			the_test->t_func(iterations);
 			timespecsub(&ts_end, &ts_start);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002032253.o13MrOD6030480>