summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-12 00:09:15 -0500
committerCraig Jennings <c@cjennings.net>2026-05-12 00:09:15 -0500
commit98a6f702bbabc82895313317beb9d0b44e3dae3d (patch)
tree48da7a8e76c816f058a5457d2f70be30ff406126 /scripts
parent3fa196eb60e28e91722f97a352a51d70d6ff977c (diff)
downloaddotemacs-98a6f702bbabc82895313317beb9d0b44e3dae3d.tar.gz
dotemacs-98a6f702bbabc82895313317beb9d0b44e3dae3d.zip
test(lorem-optimum): tag benchmarks :perf and assert on scaling ratios
The benchmark suite carried no tag, so `make test' ran it every time, and three of its tests asserted absolute wall-clock times (`(should (< time 5000.0))' and friends). Those numbers hold on my laptop and break on a slower box. Every benchmark is now `:perf'-tagged so the default test run skips it. The three absolute learn thresholds collapse into one `benchmark-learn-scaling' test: it times 1K, 10K, and 100K learns and requires each 10x jump in input to cost under 40x the time. Linear scaling lands near 10x, and the 40x ceiling tolerates GC pauses and slow hardware while still catching an O(N^2) regression. The rest drop their absolute `should's and stay as timing reports for `make benchmark'.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions