aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorClaude <noreply@anthropic.com>2026-02-16 18:15:47 +0000
committerClaude <noreply@anthropic.com>2026-02-16 18:15:47 +0000
commitd4caf45b2b9ea6a3276de792cf6f73085e66b1ae (patch)
tree3a8b7b1d9277ba0db4c946fea43043d65220fd8d /Makefile
parentc9c5def76c3a3340373143f846454b795d296c82 (diff)
downloadneko-d4caf45b2b9ea6a3276de792cf6f73085e66b1ae.tar.gz
neko-d4caf45b2b9ea6a3276de792cf6f73085e66b1ae.tar.bz2
neko-d4caf45b2b9ea6a3276de792cf6f73085e66b1ae.zip
Add performance benchmarks, stress tests, and frontend perf tests
Go benchmarks cover item CRUD/filter/sanitization, API endpoints (stream, item update, feed list), middleware stack (gzip, security headers, CSRF), and crawler pipeline (feed parsing, mocked crawl). Stress tests verify concurrent reads/writes and large dataset handling. Frontend perf tests measure template generation, DOM insertion, and store event throughput. New Makefile targets: bench, bench-short, stress, test-perf. https://claude.ai/code/session_01ChDVWFDrQoFjMYHpaLGr9s
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3e0e7bb..2356f07 100644
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,7 @@ VERSION=0.3
BUILD=`git rev-parse HEAD`
LDFLAGS=-ldflags "-X main.Version=${VERSION} -X main.Build=${BUILD}"
-.PHONY: default all clean ui build install test test-race test-frontend test-e2e ui-check lint check ci run dev docs install-hooks cover coverage-html
+.PHONY: default all clean ui build install test test-race test-frontend test-e2e ui-check lint check ci run dev docs install-hooks cover coverage-html bench bench-short stress test-perf
default: build
@@ -80,6 +80,18 @@ install-hooks:
chmod +x scripts/install-hooks.sh
./scripts/install-hooks.sh
+bench:
+ ${GO} test -bench=. -benchmem -count=3 -run=^$$ ./...
+
+bench-short:
+ ${GO} test -bench=. -benchmem -count=1 -run=^$$ ./...
+
+stress:
+ ${GO} test -run=TestStress -count=1 -timeout=120s ./...
+
+test-perf:
+ cd frontend-vanilla && ${NPM} test -- --run src/perf/
+
docs: readme.html
readme.html: README.md