From b86f4cea45b644a79a71342270e4d2190e5fcae1 Mon Sep 17 00:00:00 2001 From: Pierre Mdawar Date: Tue, 13 Aug 2024 16:08:43 +0300 Subject: [PATCH] test: print memory allocation stats for benchmarks --- Makefile | 2 +- justfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 3a2d14a..e20ee30 100644 --- a/Makefile +++ b/Makefile @@ -2,4 +2,4 @@ test: go test -cover -race -count 1 benchmark: - go test -bench . + go test -bench . -benchmem diff --git a/justfile b/justfile index 56ddd73..e8970ef 100644 --- a/justfile +++ b/justfile @@ -7,4 +7,4 @@ test *args: # Run benchmarks benchmark *args: - go test -bench . {{args}} + go test -bench . -benchmem {{args}}