{ "info": { "author": "Joshua P. Mervine", "author_email": "joshua@mervine.net", "bugtrack_url": null, "classifiers": [], "description": "=========\r\nhttperfpy\r\n=========\r\n\r\nA python port of httperfrb http://github.com/jmervine/httperfrb.\r\n\r\nBuilt and tested using:\r\n\r\n $ python --version\r\n Python 2.7.3\r\n\r\n $ uname -s -r -m\r\n Linux 3.2.0-29-generic x86_64\r\n\r\n\r\n\r\nInstalling 'httperf'\r\n====================\r\n\r\nRequires httperf, of course...\r\n\r\nMac\r\n------\r\n\r\n sudo port install httperf\r\n\r\nDebian / Ubuntu\r\n---------------\r\n\r\n sudo apt-get install httperf\r\n\r\nRedhat / CentOS\r\n---------------\r\n\r\n sudo yum install httperf\r\n\r\nMy 'httperf'\r\n------------\r\n\r\n** This is required for proper verbose handling. **\r\n\r\nSee: http://mervine.net/httperf-0-9-1-with-individual-connection-times.\r\n\r\n\r\nInstallation / Setup\r\n====================\r\n\r\nPerferred Method\r\n----------------\r\n\r\n $ sudo pip install httperfpy\r\n\r\nSee: http://pypi.python.org/pypi/httperfpy/\r\n\r\nFrom Source\r\n-----------\r\n\r\nSimply clone code and add checkout location to your PYTHONPATH.\r\n\r\nRunning tests...\r\n----------------\r\n\r\n1. sudo apt-get install python-unit\r\n2. git clone https://github.com/jmervine/httperfpy.git\r\n3. cd httperfpy\r\n4. ./scripts/unit\r\n\r\n\r\nUsage\r\n-----\r\n\r\n #!/usr/bin/env python\r\n from httperfpy import Httperf\r\n\r\n perf = Httperf(server=\"www.example.com\",\r\n port=8080,\r\n num_conns=100)\r\n # replace dashes (\"-\") with underscores (\"_\") in httperf options\r\n\r\n perf.parser = True\r\n\r\n results = perf.run()\r\n\r\n print results[\"connection_time_avg\"] + \" is avg\"\r\n print results[\"connection_time_max\"] + \" is max\"\r\n\r\n\r\nYou can use `Httperf.display_options` to print a list of all available options.\r\n\r\nPassing variables and key-values to httperf\r\n\r\n #!/usr/bin/env python\r\n from httperfpy import Httperf\r\n\r\n # arguments, key-value arguments\r\n perf = Httperf('hog', 'ssl', path='/path/to/httperf',\r\n server='www.example.com'...)\r\n\r\n # or only key-value arguments\r\n perf = Httperf(hog=True, ssl=True, path='/path/to/httperf',\r\n server='www.example.com'...)\r\n ...\r\n\r\n\r\nStand-alone parser...\r\n---------------------\r\n\r\n #!/usr/bin/env python\r\n from httperfpy import HttperfParser\r\n\r\n results = HttperfParser.parse(httperf_result_string)\r\n print results[\"connection_time_avg\"] + \" is avg\"\r\n print results[\"connection_time_max\"] + \" is max\"\r\n\r\n\r\n\r\nParser Keys:\r\n------------\r\n\r\n - command\r\n - max_connect_burst_length\r\n - total_connections\r\n - total_requests\r\n - total_replies\r\n - total_test_duration\r\n - connection_rate_per_sec\r\n - connection_rate_ms_conn\r\n - connection_time_min\r\n - connection_time_avg\r\n - connection_time_max\r\n - connection_time_median\r\n - connection_time_stddev\r\n - connection_time_connect\r\n - connection_length\r\n - request_rate_per_sec\r\n - request_rate_ms_request\r\n - request_size\r\n - reply_rate_min\r\n - reply_rate_avg\r\n - reply_rate_max\r\n - reply_rate_stddev\r\n - reply_rate_samples\r\n - reply_time_response\r\n - reply_time_transfer\r\n - reply_size_header\r\n - reply_size_content\r\n - reply_size_footer\r\n - reply_size_total\r\n - reply_status_1xx\r\n - reply_status_2xx\r\n - reply_status_3xx\r\n - reply_status_4xx\r\n - reply_status_5xx\r\n - cpu_time_user_sec\r\n - cpu_time_system_sec\r\n - cpu_time_user_pct\r\n - cpu_time_system_pct\r\n - cpu_time_total_pct\r\n - net_io_kb_sec\r\n - net_io_bps\r\n - errors_total\r\n - errors_client_timeout\r\n - errors_socket_timeout\r\n - errors_conn_refused\r\n - errors_conn_reset\r\n - errors_fd_unavail\r\n - errors_addr_unavail\r\n - errors_ftab_full\r\n - errors_other", "description_content_type": null, "docs_url": "https://pythonhosted.org/httperfpy/", "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/jmervine/httperfpy", "keywords": "", "license": "LICENSE.txt", "maintainer": "", "maintainer_email": "", "name": "httperfpy", "package_url": "https://pypi.org/project/httperfpy/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/httperfpy/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/jmervine/httperfpy" }, "release_url": "https://pypi.org/project/httperfpy/0.0.5/", "requires_dist": null, "requires_python": null, "summary": "Python wrapper for httperf.", "version": "0.0.5" }, "last_serial": 1348098, "releases": { "0.0.1": [], "0.0.2": [], "0.0.3": [ { "comment_text": "", "digests": { "md5": "e4a13a701b2556a531d6249d865f2fb6", "sha256": "d18afe0b5c7982672984482260642d74f77ab7014439d6ad388055073368e39d" }, "downloads": -1, "filename": "httperfpy-0.0.3.tar.gz", "has_sig": false, "md5_digest": "e4a13a701b2556a531d6249d865f2fb6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4998, "upload_time": "2012-10-02T03:45:11", "url": "https://files.pythonhosted.org/packages/0c/fd/282672ee3bb4be40e89076be22721e056db68ff155a177a4c79afbfdedf1/httperfpy-0.0.3.tar.gz" } ], "0.0.4": [], "0.0.5": [] }, "urls": [] }