From a8d7fba8d45220e4d12c57f5aa85bfade9d21100 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Fri, 9 Sep 2011 09:06:30 +0200 Subject: [PATCH] Unoptimize the busy loop of `statprof.test'. This is a followup to f9c1b8278dbf1992d83f91f91391ee39e714d364 ("Tweak `statprof.test' for faster machines."). * test-suite/tests/statprof.test ("statistical sample counts within expected range"): Compile with `#:partial-eval? #f'. --- test-suite/tests/statprof.test | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test-suite/tests/statprof.test b/test-suite/tests/statprof.test index 96acb3cc0..7ce39badb 100644 --- a/test-suite/tests/statprof.test +++ b/test-suite/tests/statprof.test @@ -40,8 +40,11 @@ ;; make sure these are compiled so we're not swamped in `eval' (define (make-func) + ;; Disable partial evaluation so that `(+ i i)' doesn't get + ;; stripped. (compile '(lambda (n) - (do ((i 0 (+ i 1))) ((= 200 i)) (+ i i))))) + (do ((i 0 (+ i 1))) ((= 200 i)) (+ i i))) + #:opts '(#:partial-eval? #f))) (define run-test (compile '(lambda (num-calls funcs) (let loop ((x num-calls) (funcs funcs)) @@ -50,7 +53,7 @@ ((car funcs) x) (loop (- x 1) (cdr funcs)))))))) - (let ((num-calls 20000000) + (let ((num-calls 80000) (funcs (circular-list (make-func) (make-func) (make-func)))) ;; Run test. 20000 us == 200 Hz.