dcache/bench/results/v2/grpc-no-conn-pool-single/bench.sh
Aravinth Manivannan a2dd2c31f6
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
feat: add protobuf bench
2023-12-26 14:59:43 +05:30

7 lines
500 B
Bash
Executable file

#!/bin/bash
ghz --insecure --proto ./proto/dcache/dcache.proto --call dcache.DcacheService.Write \
-c 300 -n 30000 --rps 4000 -O html -o out.html \
-d '{"data":"{\"AddVisitor\": \"test_1\"}"}' \
localhost:9001
# -d '{"data":"{\"AddCaptcha\":{\"id\":\"test_1\",\"mcaptcha\":{\"defense\":{\"current_visitor_threshold\":0,\"levels\":[{\"difficulty_factor\":500,\"visitor_threshold\":50},{\"difficulty_factor\":50000,\"visitor_threshold\":5000}]},\"duration\":30,\"visitor_threshold\":0}}}"}' \