aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKonstantin Lebedev <9497591+kmlebedev@users.noreply.github.com>2023-10-16 11:02:27 +0500
committerGitHub <noreply@github.com>2023-10-15 23:02:27 -0700
commit6175102ccfb445ac9752190ed15eac5b36064e45 (patch)
treefbfe62926354f1eb8e1ade8db00ff1dda940b01e /Makefile
parentc6991dfd5fb17326885567501d4ca4f532736aa1 (diff)
downloadseaweedfs-6175102ccfb445ac9752190ed15eac5b36064e45.tar.xz
seaweedfs-6175102ccfb445ac9752190ed15eac5b36064e45.zip
add make benchmark with WARP (#4914)
add make benchmark Co-authored-by: Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.co>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 19 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6ca6cae0d..9ae877fa6 100644
--- a/Makefile
+++ b/Makefile
@@ -1,17 +1,35 @@
BINARY = weed
SOURCE_DIR = .
+debug ?= 0
all: install
install:
cd weed; go install
+warp_install:
+ go install github.com/minio/warp@v0.7.6
+
full_install:
cd weed; go install -tags "elastic gocdk sqlite ydb tikv"
server: install
weed -v 4 server -s3 -filer -volume.max=0 -master.volumeSizeLimitMB=1024 -volume.preStopSeconds=1 -s3.port=8000 -s3.allowEmptyFolder=false -s3.allowDeleteBucketNotEmpty=false -s3.config=./docker/compose/s3.json
+benchmark: install warp_install
+ pkill weed || true
+ pkill warp || true
+ weed server -debug=$(debug) -s3 -filer -volume.max=0 -master.volumeSizeLimitMB=1024 -volume.preStopSeconds=1 -s3.port=8000 -s3.allowEmptyFolder=false -s3.allowDeleteBucketNotEmpty=false -s3.config=./docker/compose/s3.json &
+ warp client &
+ while ! nc -z localhost 8000 ; do sleep 1 ; done
+ warp mixed --host=127.0.0.1:8000 --access-key=some_access_key1 --secret-key=some_secret_key1 --autoterm
+ pkill warp
+ pkill weed
+
+# curl -o profile "http://127.0.0.1:6060/debug/pprof/profile?debug=1"
+benchmark_with_pprof: debug = 1
+benchmark_with_pprof: benchmark
+
test:
- cd weed; go test -tags "elastic gocdk sqlite ydb tikv" -v ./...
+ cd weed; go test -tags "elastic gocdk sqlite ydb tikv" -v ./... \ No newline at end of file