{"id":13905609,"url":"https://github.com/igrigorik/autoperf","last_synced_at":"2025-05-08T02:38:40.720Z","repository":{"id":436849,"uuid":"57921","full_name":"igrigorik/autoperf","owner":"igrigorik","description":"Ruby driver for httperf - automated load and performance testing","archived":false,"fork":false,"pushed_at":"2014-10-15T14:46:29.000Z","size":158,"stargazers_count":178,"open_issues_count":1,"forks_count":23,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-31T16:34:38.507Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.igvita.com/2008/09/30/load-testing-with-log-replay/","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/igrigorik.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2008-09-30T13:14:26.000Z","updated_at":"2024-12-31T15:42:28.000Z","dependencies_parsed_at":"2022-07-07T23:30:32.908Z","dependency_job_id":null,"html_url":"https://github.com/igrigorik/autoperf","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igrigorik%2Fautoperf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igrigorik%2Fautoperf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igrigorik%2Fautoperf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igrigorik%2Fautoperf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/igrigorik","download_url":"https://codeload.github.com/igrigorik/autoperf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252988420,"owners_count":21836522,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-06T23:01:19.737Z","updated_at":"2025-05-08T02:38:40.691Z","avatar_url":"https://github.com/igrigorik.png","language":"Ruby","readme":"For updated version, see: https://github.com/jmervine/autoperf\r\n\r\n--------------------------------------------------------------\r\n\r\nAutoperf is a ruby driver for httperf, designed to help you automate load and performance testing of any web application - for a single end point, or through log replay. More: http://www.igvita.com/2008/09/30/load-testing-with-log-replay\r\n\r\nTo get started, first download \u0026 install httperf:\r\nhttp://www.hpl.hp.com/research/linux/httperf/\r\n\r\nNext, either run a simple test straight from the command line (man httperf), or create\r\nan execution plan for autoperf. If you want to replay an access log from your production\r\nenvironment, follow these steps:\r\n\r\n# grab last 10000 lines from nginx log, and extract a certain pattern (if needed)\r\ntail -n 10000 nginx.log | grep \"__pattern__\" \u003e requests\r\n\r\n# extract the request path (ex. /homepage) from the log file\r\nawk '{print $7}' requests \u003e requests_path\r\n\r\n# replace newlines with null terminators (httperf format)\r\ntr \"\\n\" \"\\0\" \u003c requests_path \u003e replay_log\r\n\r\nNext, configure your execution plan (see sample.conf), and run autoperf:\r\nruby autoperf.rb -c sample.conf\r\n\r\nSample output:\r\n+-----------------------------------------------------------------------------+\r\n| rate | conn/s | req/s | replies/s avg | errors | 5xx status | net io (KB/s) |\r\n+-----------------------------------------------------------------------------+\r\n|  100 | 99.9   | 99.9  | 99.7          | 0      | 0          | 45.4          |\r\n|  120 | 119.7  | 119.7 | 120.0         | 0      | 0          | 54.4          |\r\n|  140 | 139.3  | 139.3 | 138.0         | 0      | 0          | 63.6          |\r\n|\u003e 160 | 151.9  | 151.9 | 147.0         | 0      | 0          | 69.3          |\r\n|  180 | 132.2  | 129.8 | 137.4         | 27     | 0          | 59.6          |\r\n|  200 | 119.8  | 117.6 | 139.9         | 31     | 14         | 53.9          |\r\n+-----------------------------------------------------------------------------+\r\n\r\nIf your server uses caching, making it pointless to run the same requests over\r\nand over, you can use different requests for each run.\r\n\r\n# Create 10 1000-line files (xa, xb, xc etc)\r\nsplit -a 1 requests_path\r\n\r\n# Convert to null-terminated strings\r\nfor x in x?; do tr \"\\n\" \"\\0\" \u003c $x \u003e $x.nul; done\r\n\r\n# run as before, but use the `wlog` line instead of `httperf_wlog` in the conf file\r\nruby autoperf.rb -c sample.conf\r\n","funding_links":[],"categories":["Ruby","Webserver Benchmarks","Web server Benchmarks"],"sub_categories":["Meetups"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figrigorik%2Fautoperf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Figrigorik%2Fautoperf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figrigorik%2Fautoperf/lists"}