[skip ci] Add new func of benchmark (#10890)

Signed-off-by: wangting0128 <ting.wang@zilliz.com>
pull/10913/head
wt 2021-10-29 12:10:55 +08:00 committed by GitHub
parent 165be0445d
commit 80c57df90d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -10,6 +10,17 @@ import requests
import json
def get_token(url):
rep = requests.get(url)
data = json.loads(rep.text)
if 'token' in data:
token = data['token']
else:
token = ''
print("Can not get token.")
return token
def parse_server_tag(server_tag):
""" paser server tag from server config"""
# tag format: "8c"/"8c16m"/"8c16m1g"