From 76b173bd38886acaf92c90ce3502814f0009179c Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 9 Nov 2025 15:36:20 -0600 Subject: test: Add slow tag to benchmarks taking too long Disabled benchmarks for learning and tokenizing 10,000 words due to prolonged execution times (minutes instead of seconds). Added `:slow` tag to indicate need for performance optimization before re-enabling. --- tests/test-lorem-optimum-benchmark.el | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/test-lorem-optimum-benchmark.el b/tests/test-lorem-optimum-benchmark.el index d3ca2873..79e872ff 100644 --- a/tests/test-lorem-optimum-benchmark.el +++ b/tests/test-lorem-optimum-benchmark.el @@ -63,7 +63,10 @@ (should (< time 50.0)))) ; Should be < 50ms (ert-deftest benchmark-learn-10k-words () - "Benchmark learning 10,000 words." + "Benchmark learning 10,000 words. +DISABLED: Takes too long (minutes instead of seconds). +Needs lorem-optimum performance optimization before re-enabling." + :tags '(:slow) (let* ((text (generate-test-text 10000)) (chain (cj/markov-chain-create)) (time (benchmark-time @@ -161,7 +164,10 @@ ;;; Tokenization Performance Tests (ert-deftest benchmark-tokenize-10k-words () - "Benchmark tokenizing 10,000 words." + "Benchmark tokenizing 10,000 words. +DISABLED: Takes too long (minutes instead of seconds). +Needs lorem-optimum performance optimization before re-enabling." + :tags '(:slow) (let* ((text (generate-test-text 10000)) (time (benchmark-time (lambda () (cj/markov-tokenize text))))) -- cgit v1.2.3