From 6c7347ce212926f980f3848d6d7999866017dd5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Sat, 9 Nov 2024 12:02:02 +0100 Subject: [PATCH] tests: Skip expensive speedup test/benchmark by default. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With this change, ‘make check’ runs in 230s on x86_64-linux-gnu (4-core CPU) instead of 880s. * tests/speedup.scm : Exit with 77 when ‘FIBERS_EXPENSIVE_TESTS’ is unset. --- tests/speedup.scm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/speedup.scm b/tests/speedup.scm index b77555f8..9d436266 100644 --- a/tests/speedup.scm +++ b/tests/speedup.scm @@ -53,6 +53,14 @@ (lp (1+ i) (make-vector (- words 2) #f)) x))) +(unless (getenv "FIBERS_EXPENSIVE_TESTS") + (newline (current-error-port)) + (format (current-error-port) "Skipping expensive test/benchmark.~%") + (format (current-error-port) "\ +Set the 'FIBERS_EXPENSIVE_TESTS' environment variable to run it.~%") + (newline (current-error-port)) + (exit 77)) + (measure-speedup (do-times 100000 (spawn-fiber (lambda () #t) #:parallel? #t))) (measure-speedup