PERFORCE change 174286 for review

Robert Watson rwatson at FreeBSD.org
Wed Feb 3 22:53:25 UTC 2010


http://p4web.freebsd.org/chv.cgi?CH=174286

Change 174286 by rwatson at 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);


More information about the p4-projects mailing list