From 23f9e02422309f59c4307146ed4284339941efa5 Mon Sep 17 00:00:00 2001 From: Preston Vasquez Date: Sat, 13 Jul 2024 21:28:58 -0600 Subject: [PATCH] Run benchmark package not just main --- Makefile | 2 +- go.work | 10 ---------- internal/cmd/benchmark/go.mod | 4 ++-- internal/cmd/benchmark/go.sum | 2 ++ 4 files changed, 5 insertions(+), 13 deletions(-) delete mode 100644 go.work diff --git a/Makefile b/Makefile index 7fea3138da..6abdc7fe31 100644 --- a/Makefile +++ b/Makefile @@ -202,7 +202,7 @@ benchmark:perf .PHONY: driver-benchmark driver-benchmark:perf - @go run internal/cmd/benchmark/main.go | tee perf.suite + cd internal/cmd/benchmark && go run . | tee perf.suite perf:driver-test-data.tar.gz tar -zxf $< $(if $(eq $(UNAME_S),Darwin),-s , --transform=s)/testdata/perf/ diff --git a/go.work b/go.work deleted file mode 100644 index 32f879ee23..0000000000 --- a/go.work +++ /dev/null @@ -1,10 +0,0 @@ -go 1.21 - -use ( - . - ./examples/_logger/logrus - ./examples/_logger/zap - ./examples/_logger/zerolog - ./internal/cmd/compilecheck - ./internal/cmd/faas/awslambda/mongodb -) diff --git a/internal/cmd/benchmark/go.mod b/internal/cmd/benchmark/go.mod index 1ecb3265cd..b849d4e3e2 100644 --- a/internal/cmd/benchmark/go.mod +++ b/internal/cmd/benchmark/go.mod @@ -1,6 +1,6 @@ module go.mongodb.go/mongo-driver/internal/cmd/benchmark -go 1.20 +go 1.18 replace go.mongodb.org/mongo-driver => ../../../ @@ -21,7 +21,7 @@ require ( github.com/xdg-go/pbkdf2 v1.0.0 // indirect github.com/xdg-go/scram v1.1.2 // indirect github.com/xdg-go/stringprep v1.0.4 // indirect - github.com/youmark/pkcs8 v0.0.0-20240424034433-3c2c7870ae76 // indirect + github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d // indirect golang.org/x/crypto v0.24.0 // indirect golang.org/x/sync v0.7.0 // indirect golang.org/x/text v0.16.0 // indirect diff --git a/internal/cmd/benchmark/go.sum b/internal/cmd/benchmark/go.sum index 0eb3b80c73..0b0019e4df 100644 --- a/internal/cmd/benchmark/go.sum +++ b/internal/cmd/benchmark/go.sum @@ -18,6 +18,8 @@ github.com/xdg-go/scram v1.1.2 h1:FHX5I5B4i4hKRVRBCFRxq1iQRej7WO3hhBuJf+UUySY= github.com/xdg-go/scram v1.1.2/go.mod h1:RT/sEzTbU5y00aCK8UOx6R7YryM0iF1N2MOmC3kKLN4= github.com/xdg-go/stringprep v1.0.4 h1:XLI/Ng3O1Atzq0oBs3TWm+5ZVgkq2aqdlvP9JtoZ6c8= github.com/xdg-go/stringprep v1.0.4/go.mod h1:mPGuuIYwz7CmR2bT9j4GbQqutWS1zV24gijq1dTyGkM= +github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d h1:splanxYIlg+5LfHAM6xpdFEAYOk8iySO56hMFq6uLyA= +github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d/go.mod h1:rHwXgn7JulP+udvsHwJoVG1YGAP6VLg4y9I5dyZdqmA= github.com/youmark/pkcs8 v0.0.0-20240424034433-3c2c7870ae76 h1:tBiBTKHnIjovYoLX/TPkcf+OjqqKGQrPtGT3Foz+Pgo= github.com/youmark/pkcs8 v0.0.0-20240424034433-3c2c7870ae76/go.mod h1:SQliXeA7Dhkt//vS29v3zpbEwoa+zb2Cn5xj5uO4K5U= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=