aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2025-11-09 15:36:20 -0600
committerCraig Jennings <c@cjennings.net>2025-11-09 15:36:20 -0600
commit2ac724960b424ec46d041129c9ac7d411c20fb0c (patch)
tree2c955464008e5932cf31559de98247068a9a557e /tests
parent92dd8b0c9ffd482eaa8cf3a99115ffac84b0e955 (diff)
downloaddotemacs-2ac724960b424ec46d041129c9ac7d411c20fb0c.tar.gz
dotemacs-2ac724960b424ec46d041129c9ac7d411c20fb0c.zip
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.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-lorem-optimum-benchmark.el10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/test-lorem-optimum-benchmark.el b/tests/test-lorem-optimum-benchmark.el
index d3ca28733..79e872ffd 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)))))