#!/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}}}"}' \
