aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2026-05-12 23:32:28 +0200
committerStefan Majewsky <majewsky@gmx.net>2026-05-12 23:32:28 +0200
commita86a346ecceb7ad409f116474c1593b201012cf2 (patch)
tree267505a9e6bba398f7a379a046df64a8aec45b1c /Makefile
parent23fa77bbe1286b55e2526c0a965da1a4c3048415 (diff)
downloadgo-oblast-a86a346ecceb7ad409f116474c1593b201012cf2.tar.gz
add PostgreSQL benchmark, comparing lib/pq against pgx both with and w/o Oblast
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d364193..ab441e7 100644
--- a/Makefile
+++ b/Makefile
@@ -12,8 +12,11 @@ static-check: FORCE
@printf "\e[1;36m>> reuse lint\e[0m\n"
@if ! reuse lint -q; then reuse lint; fi
-benchmark: FORCE
- @cd benchmark && go test -bench . -benchmem .
+benchmark-orm: FORCE
+ @cd benchmark && go test -bench BenchmarkORM -benchmem .
+
+benchmark-postgres: FORCE
+ @cd benchmark && go test -bench BenchmarkPostgres -benchmem .
GO_COVERPKGS := $(shell go list ./... | grep -vw testhelpers | tr '\n' , | sed 's/,$$//')
GO_TESTPKGS := $(shell go list -f '{{if or .TestGoFiles .XTestGoFiles}}{{.ImportPath}}{{end}}' ./...)