Tweak `statprof.test' for faster machines.
authorLudovic Courtès <ludo@gnu.org>
Thu, 8 Sep 2011 21:53:31 +0000 (23:53 +0200)
committerLudovic Courtès <ludo@gnu.org>
Thu, 8 Sep 2011 22:05:42 +0000 (00:05 +0200)
* test-suite/tests/statprof.test ("statistical sample counts within
  expected range"): Increase NUM-CALLS and the frequency so that they
  are at least a few samples on my new 2.6 GHz laptop.

test-suite/tests/statprof.test

index 66af55f..96acb3c 100644 (file)
                       ((car funcs) x)
                       (loop (- x 1) (cdr funcs))))))))
     
-    (let ((num-calls 40000)
+    (let ((num-calls 20000000)
           (funcs (circular-list (make-func) (make-func) (make-func))))
 
-      ;; Run test. 10000 us == 100 Hz.
-      (statprof-reset 0 10000 #f #f)
+      ;; Run test. 20000 us == 200 Hz.
+      (statprof-reset 0 20000 #f #f)
       (statprof-start)
       (run-test num-calls funcs)
       (statprof-stop)