diff options
| author | Stefan Majewsky <majewsky@gmx.net> | 2026-05-12 23:32:28 +0200 |
|---|---|---|
| committer | Stefan Majewsky <majewsky@gmx.net> | 2026-05-12 23:32:28 +0200 |
| commit | a86a346ecceb7ad409f116474c1593b201012cf2 (patch) | |
| tree | 267505a9e6bba398f7a379a046df64a8aec45b1c /Makefile | |
| parent | 23fa77bbe1286b55e2526c0a965da1a4c3048415 (diff) | |
| download | go-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-- | Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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}}' ./...) |
