summaryrefslogtreecommitdiff
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
commit76b173bd38886acaf92c90ce3502814f0009179c (patch)
tree2782ff83dc95ed179b78dc201fc63b2ac52a9d42
parent89805ee1bd94a932c7d47594c6ccb1b1d64abd1f (diff)
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.
-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 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)))))