apache-utils

HTTPerf send JSON data from file

家住魔仙堡 提交于 2019-12-11 14:05:12
问题 Need to use this httperf as ab is returning SSL errors. Operating System Ubuntu 16 (Google Cloud Linux tools 4.15.0-1036-gcp #38~16.04.1-Ubuntu) curl (curl works fine) ACCESS_TOKEN=`gcloud auth print-access-token` export URL=https://ml.googleapis.com/v1/projects/dpe-cloud-mle/models/pretrained_model/versions/gpu:predict curl -X POST $URL -d @image_b64.json \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $ACCESS_TOKEN" ab testing tool ab -n 10 -c 1 -s 300 \ -f ALL \ -H