我想创建一个装饰器,用于描述方法并记录结果.如何才能做到这一点?
python profiling decorator
我创建了这样的requestsPOST请求,其中我指定了超时阈值:
requests
response = requests.post(url, data=post_fields, timeout=timeout)
但是,为了确定"良好"的阈值,我想提前对服务器响应时间进行基准测试.
如何计算服务器的最小和最大响应时间?
python network-programming python-3.x python-requests server
python ×2
decorator ×1
network-programming ×1
profiling ×1
python-3.x ×1
python-requests ×1
server ×1