From a86a346ecceb7ad409f116474c1593b201012cf2 Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Tue, 12 May 2026 23:32:28 +0200 Subject: add PostgreSQL benchmark, comparing lib/pq against pgx both with and w/o Oblast --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Makefile') 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}}' ./...) -- cgit v1.2.3