How to measure the maximum throughput (TPS - Transactions per Second) that a single website instance(host) can handle via curl tool ?
tps.py, a python script using curl to measure the time per transaction requested to your website curl --connect-timeout 10 --max-time 10 -o /dev/null -s -w "%{http_code},%{size_download},%{time_appconnect},%{time_connect},%{time_namelookup},%{time_pretransfer},%{time_starttransfer},%{time_total}" -k #!/usr/bin/python #-*- coding: UTF-8 -*- import commands import getopt import os import re import sys import thread import threading import time def help(code): print 'tps.py -A "useragent" -C "cookies" -H "header" -P "period" -T "tps" -U "url" -O "outputdir"' print 'examples:' print 'tps.py -U https://www.amazon.com -T 20 -P PT5M' print 'tps.py -U https://www.amazon.com -T 20 -P PT1H' sys.exit(code) def check_args(a, c, h, p, t, u, o): if u == '': print 'no URL specified!' help(2) if t ==