{"action":"created","comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/pulls/comments/42263395","id":42263395,"diff_hunk":"@@ -0,0 +1,155 @@\n+# Copyright 2015 Google Inc. All rights reserved.\n+#\n+# Licensed under the Apache License, Version 2.0 (the \"License\");\n+# you may not use this file except in compliance with the License.\n+# You may obtain a copy of the License at\n+#\n+#   http://www.apache.org/licenses/LICENSE-2.0\n+#\n+# Unless required by applicable law or agreed to in writing, software\n+# distributed under the License is distributed on an \"AS IS\" BASIS,\n+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+# See the License for the specific language governing permissions and\n+# limitations under the License.\n+\n+\"\"\"Run wrk against a simple Nginx web server.\n+\n+`wrk` is a scalable web load generator.\n+`Nginx` is a popular static web server and reverse proxy.\n+\"\"\"\n+\n+import functools\n+import logging\n+import urlparse\n+\n+from perfkitbenchmarker import configs\n+from perfkitbenchmarker import flags\n+from perfkitbenchmarker import vm_util\n+from perfkitbenchmarker.packages import nginx\n+from perfkitbenchmarker.packages import wrk\n+\n+\n+flags.DEFINE_integer('nginx_wrk_test_length', 60,\n+                     'Length of time, in seconds, to run wrk at each '\n+                     'connction count', lower_bound=1)\n+flags.DEFINE_float('nginx_wrk_max_p50_ratio', 5.0,","path":"perfkitbenchmarker/benchmarks/nginx_wrk_benchmark.py","position":35,"original_position":35,"commit_id":"1df7653749d9d01455760d16b90ff51f2c1eb3c0","original_commit_id":"1df7653749d9d01455760d16b90ff51f2c1eb3c0","user":{"login":"cmccoy","id":564884,"avatar_url":"https://avatars.githubusercontent.com/u/564884?v=3","gravatar_id":"","url":"https://api.github.com/users/cmccoy","html_url":"https://github.com/cmccoy","followers_url":"https://api.github.com/users/cmccoy/followers","following_url":"https://api.github.com/users/cmccoy/following{/other_user}","gists_url":"https://api.github.com/users/cmccoy/gists{/gist_id}","starred_url":"https://api.github.com/users/cmccoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmccoy/subscriptions","organizations_url":"https://api.github.com/users/cmccoy/orgs","repos_url":"https://api.github.com/users/cmccoy/repos","events_url":"https://api.github.com/users/cmccoy/events{/privacy}","received_events_url":"https://api.github.com/users/cmccoy/received_events","type":"User","site_admin":false},"body":"Exactly. I didn't want to use an absolute cutoff since the baseline RR latency may vary. Any suggestions?","created_at":"2015-10-16T16:47:18Z","updated_at":"2015-10-16T16:47:18Z","html_url":"https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/pull/554#discussion_r42263395","pull_request_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/pulls/554","_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/pulls/comments/42263395"},"html":{"href":"https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/pull/554#discussion_r42263395"},"pull_request":{"href":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/pulls/554"}}},"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/pulls/554","id":47851565,"html_url":"https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/pull/554","diff_url":"https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/pull/554.diff","patch_url":"https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/pull/554.patch","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/issues/554","number":554,"state":"open","locked":false,"title":"Initial addition of a nginx_wrk benchmark.","user":{"login":"cmccoy","id":564884,"avatar_url":"https://avatars.githubusercontent.com/u/564884?v=3","gravatar_id":"","url":"https://api.github.com/users/cmccoy","html_url":"https://github.com/cmccoy","followers_url":"https://api.github.com/users/cmccoy/followers","following_url":"https://api.github.com/users/cmccoy/following{/other_user}","gists_url":"https://api.github.com/users/cmccoy/gists{/gist_id}","starred_url":"https://api.github.com/users/cmccoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmccoy/subscriptions","organizations_url":"https://api.github.com/users/cmccoy/orgs","repos_url":"https://api.github.com/users/cmccoy/repos","events_url":"https://api.github.com/users/cmccoy/events{/privacy}","received_events_url":"https://api.github.com/users/cmccoy/received_events","type":"User","site_admin":false},"body":"Adds a simple static web serving benchmark - wrk running against nginx server serving a very small page.\r\n\r\nSee #24","created_at":"2015-10-15T22:42:57Z","updated_at":"2015-10-16T16:47:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c403cb4c7c30ddcdf6c878e2dcf02c7b4bc63b3b","assignee":{"login":"ehankland","id":8193699,"avatar_url":"https://avatars.githubusercontent.com/u/8193699?v=3","gravatar_id":"","url":"https://api.github.com/users/ehankland","html_url":"https://github.com/ehankland","followers_url":"https://api.github.com/users/ehankland/followers","following_url":"https://api.github.com/users/ehankland/following{/other_user}","gists_url":"https://api.github.com/users/ehankland/gists{/gist_id}","starred_url":"https://api.github.com/users/ehankland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehankland/subscriptions","organizations_url":"https://api.github.com/users/ehankland/orgs","repos_url":"https://api.github.com/users/ehankland/repos","events_url":"https://api.github.com/users/ehankland/events{/privacy}","received_events_url":"https://api.github.com/users/ehankland/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/pulls/554/commits","review_comments_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/pulls/554/comments","review_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/issues/554/comments","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/statuses/1df7653749d9d01455760d16b90ff51f2c1eb3c0","head":{"label":"cmccoy:nginx-wrk","ref":"nginx-wrk","sha":"1df7653749d9d01455760d16b90ff51f2c1eb3c0","user":{"login":"cmccoy","id":564884,"avatar_url":"https://avatars.githubusercontent.com/u/564884?v=3","gravatar_id":"","url":"https://api.github.com/users/cmccoy","html_url":"https://github.com/cmccoy","followers_url":"https://api.github.com/users/cmccoy/followers","following_url":"https://api.github.com/users/cmccoy/following{/other_user}","gists_url":"https://api.github.com/users/cmccoy/gists{/gist_id}","starred_url":"https://api.github.com/users/cmccoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmccoy/subscriptions","organizations_url":"https://api.github.com/users/cmccoy/orgs","repos_url":"https://api.github.com/users/cmccoy/repos","events_url":"https://api.github.com/users/cmccoy/events{/privacy}","received_events_url":"https://api.github.com/users/cmccoy/received_events","type":"User","site_admin":false},"repo":{"id":34029803,"name":"PerfKitBenchmarker","full_name":"cmccoy/PerfKitBenchmarker","owner":{"login":"cmccoy","id":564884,"avatar_url":"https://avatars.githubusercontent.com/u/564884?v=3","gravatar_id":"","url":"https://api.github.com/users/cmccoy","html_url":"https://github.com/cmccoy","followers_url":"https://api.github.com/users/cmccoy/followers","following_url":"https://api.github.com/users/cmccoy/following{/other_user}","gists_url":"https://api.github.com/users/cmccoy/gists{/gist_id}","starred_url":"https://api.github.com/users/cmccoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmccoy/subscriptions","organizations_url":"https://api.github.com/users/cmccoy/orgs","repos_url":"https://api.github.com/users/cmccoy/repos","events_url":"https://api.github.com/users/cmccoy/events{/privacy}","received_events_url":"https://api.github.com/users/cmccoy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cmccoy/PerfKitBenchmarker","description":"Perfkit Benchmarker contains set of benchmarks to measure and compare cloud offerings. The benchmarks are not tuned (i.e. use defaults) to reflect what most users will see. PerfKit Benchmarker is licensed under the Apache 2 license terms. Please make sure to read, understand and agree to the terms of the LICENSE and CONTRIBUTING files before proceeding.","fork":true,"url":"https://api.github.com/repos/cmccoy/PerfKitBenchmarker","forks_url":"https://api.github.com/repos/cmccoy/PerfKitBenchmarker/forks","keys_url":"https://api.github.com/repos/cmccoy/PerfKitBenchmarker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cmccoy/PerfKitBenchmarker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cmccoy/PerfKitBenchmarker/teams","hooks_url":"https://api.github.com/repos/cmccoy/PerfKitBenchmarker/hooks","issue_events_url":"https://api.github.com/repos/cmccoy/PerfKitBenchmarker/issues/events{/number}","events_url":"https://api.github.com/repos/cmccoy/PerfKitBenchmarker/events","assignees_url":"https://api.github.com/repos/cmccoy/PerfKitBenchmarker/assignees{/user}","branches_url":"https://api.github.com/repos/cmccoy/PerfKitBenchmarker/branches{/branch}","tags_url":"https://api.github.com/repos/cmccoy/PerfKitBenchmarker/tags","blobs_url":"https://api.github.com/repos/cmccoy/PerfKitBenchmarker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cmccoy/PerfKitBenchmarker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cmccoy/PerfKitBenchmarker/git/refs{/sha}","trees_url":"https://api.github.com/repos/cmccoy/PerfKitBenchmarker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cmccoy/PerfKitBenchmarker/statuses/{sha}","languages_url":"https://api.github.com/repos/cmccoy/PerfKitBenchmarker/languages","stargazers_url":"https://api.github.com/repos/cmccoy/PerfKitBenchmarker/stargazers","contributors_url":"https://api.github.com/repos/cmccoy/PerfKitBenchmarker/contributors","subscribers_url":"https://api.github.com/repos/cmccoy/PerfKitBenchmarker/subscribers","subscription_url":"https://api.github.com/repos/cmccoy/PerfKitBenchmarker/subscription","commits_url":"https://api.github.com/repos/cmccoy/PerfKitBenchmarker/commits{/sha}","git_commits_url":"https://api.github.com/repos/cmccoy/PerfKitBenchmarker/git/commits{/sha}","comments_url":"https://api.github.com/repos/cmccoy/PerfKitBenchmarker/comments{/number}","issue_comment_url":"https://api.github.com/repos/cmccoy/PerfKitBenchmarker/issues/comments{/number}","contents_url":"https://api.github.com/repos/cmccoy/PerfKitBenchmarker/contents/{+path}","compare_url":"https://api.github.com/repos/cmccoy/PerfKitBenchmarker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cmccoy/PerfKitBenchmarker/merges","archive_url":"https://api.github.com/repos/cmccoy/PerfKitBenchmarker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cmccoy/PerfKitBenchmarker/downloads","issues_url":"https://api.github.com/repos/cmccoy/PerfKitBenchmarker/issues{/number}","pulls_url":"https://api.github.com/repos/cmccoy/PerfKitBenchmarker/pulls{/number}","milestones_url":"https://api.github.com/repos/cmccoy/PerfKitBenchmarker/milestones{/number}","notifications_url":"https://api.github.com/repos/cmccoy/PerfKitBenchmarker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cmccoy/PerfKitBenchmarker/labels{/name}","releases_url":"https://api.github.com/repos/cmccoy/PerfKitBenchmarker/releases{/id}","created_at":"2015-04-16T02:24:48Z","updated_at":"2015-04-18T13:31:32Z","pushed_at":"2015-10-16T14:48:06Z","git_url":"git://github.com/cmccoy/PerfKitBenchmarker.git","ssh_url":"git@github.com:cmccoy/PerfKitBenchmarker.git","clone_url":"https://github.com/cmccoy/PerfKitBenchmarker.git","svn_url":"https://github.com/cmccoy/PerfKitBenchmarker","homepage":"","size":3294,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"GoogleCloudPlatform:master","ref":"master","sha":"43f89c6c72c4342652d50dc0d95b0c2f90f0ec44","user":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":21950910,"name":"PerfKitBenchmarker","full_name":"GoogleCloudPlatform/PerfKitBenchmarker","owner":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GoogleCloudPlatform/PerfKitBenchmarker","description":"Perfkit Benchmarker contains set of benchmarks to measure and compare cloud offerings. The benchmarks are not tuned (i.e. use defaults) to reflect what most users will see. PerfKit Benchmarker is licensed under the Apache 2 license terms. Please make sure to read, understand and agree to the terms of the LICENSE and CONTRIBUTING files before proceeding.","fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/releases{/id}","created_at":"2014-07-17T17:23:26Z","updated_at":"2015-10-14T21:18:13Z","pushed_at":"2015-10-16T14:48:07Z","git_url":"git://github.com/GoogleCloudPlatform/PerfKitBenchmarker.git","ssh_url":"git@github.com:GoogleCloudPlatform/PerfKitBenchmarker.git","clone_url":"https://github.com/GoogleCloudPlatform/PerfKitBenchmarker.git","svn_url":"https://github.com/GoogleCloudPlatform/PerfKitBenchmarker","homepage":"","size":85197,"stargazers_count":489,"watchers_count":489,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":85,"mirror_url":null,"open_issues_count":106,"forks":85,"open_issues":106,"watchers":489,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/pulls/554"},"html":{"href":"https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/pull/554"},"issue":{"href":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/issues/554"},"comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/issues/554/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/pulls/554/comments"},"review_comment":{"href":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/pulls/554/commits"},"statuses":{"href":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/statuses/1df7653749d9d01455760d16b90ff51f2c1eb3c0"}}}}