{"action":"created","comment":{"url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/pulls/comments/57538508","id":57538508,"diff_hunk":"@@ -0,0 +1,69 @@\n+package main\n+\n+import (\n+\t\"common\"\n+\t\"flag\"\n+\t\"log\"\n+\t\"net\"\n+\t\"os\"\n+\t\"os/exec\"\n+\t\"runtime\"\n+\n+\t\"github.com/labstack/echo\"\n+\t\"github.com/labstack/echo/engine\"\n+\t\"github.com/labstack/echo/engine/fasthttp\"\n+\t\"github.com/valyala/fasthttp/reuseport\"\n+)\n+\n+var (\n+\tprefork = flag.Bool(\"prefork\", false, \"use prefork\")\n+\tchild   = flag.Bool(\"child\", false, \"is child proc\")\n+)\n+\n+func getListener() net.Listener {\n+\tif !*prefork {\n+\t\truntime.GOMAXPROCS(runtime.NumCPU())\n+\t\tln, err := net.Listen(\"tcp4\", \":8080\")\n+\t\tif err != nil {\n+\t\t\tlog.Fatal(err)\n+\t\t}\n+\t\treturn ln\n+\t}\n+\n+\tif !*child {\n+\t\tchildren := make([]*exec.Cmd, runtime.NumCPU())\n+\t\tfor i := range children {\n+\t\t\tchildren[i] = exec.Command(os.Args[0], \"-prefork\", \"-child\")\n+\t\t\tchildren[i].Stdout = os.Stdout\n+\t\t\tchildren[i].Stderr = os.Stderr\n+\t\t\tif err := children[i].Start(); err != nil {\n+\t\t\t\tlog.Fatal(err)\n+\t\t\t}\n+\t\t}\n+\t\tfor _, ch := range children {\n+\t\t\tif err := ch.Wait(); err != nil {\n+\t\t\t\tlog.Print(err)\n+\t\t\t}\n+\t\t}\n+\t\tos.Exit(0)\n+\t\tpanic(\"unreachable\")\n+\t}\n+\n+\truntime.GOMAXPROCS(1)","path":"frameworks/Go/echo/src/fasthttp/main.go","position":52,"original_position":52,"commit_id":"5dd76c91a23dfb9ece002b8fd4a1f0b41ac55771","original_commit_id":"5dd76c91a23dfb9ece002b8fd4a1f0b41ac55771","user":{"login":"methane","id":199592,"avatar_url":"https://avatars.githubusercontent.com/u/199592?v=3","gravatar_id":"","url":"https://api.github.com/users/methane","html_url":"https://github.com/methane","followers_url":"https://api.github.com/users/methane/followers","following_url":"https://api.github.com/users/methane/following{/other_user}","gists_url":"https://api.github.com/users/methane/gists{/gist_id}","starred_url":"https://api.github.com/users/methane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/methane/subscriptions","organizations_url":"https://api.github.com/users/methane/orgs","repos_url":"https://api.github.com/users/methane/repos","events_url":"https://api.github.com/users/methane/events{/privacy}","received_events_url":"https://api.github.com/users/methane/received_events","type":"User","site_admin":false},"body":"Why?","created_at":"2016-03-28T01:27:28Z","updated_at":"2016-03-28T01:27:28Z","html_url":"https://github.com/TechEmpower/FrameworkBenchmarks/pull/2002#discussion_r57538508","pull_request_url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/pulls/2002","_links":{"self":{"href":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/pulls/comments/57538508"},"html":{"href":"https://github.com/TechEmpower/FrameworkBenchmarks/pull/2002#discussion_r57538508"},"pull_request":{"href":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/pulls/2002"}}},"pull_request":{"url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/pulls/2002","id":64272627,"html_url":"https://github.com/TechEmpower/FrameworkBenchmarks/pull/2002","diff_url":"https://github.com/TechEmpower/FrameworkBenchmarks/pull/2002.diff","patch_url":"https://github.com/TechEmpower/FrameworkBenchmarks/pull/2002.patch","issue_url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/issues/2002","number":2002,"state":"open","locked":false,"title":"Upgraded Go/Echo to v2.","user":{"login":"vishr","id":314036,"avatar_url":"https://avatars.githubusercontent.com/u/314036?v=3","gravatar_id":"","url":"https://api.github.com/users/vishr","html_url":"https://github.com/vishr","followers_url":"https://api.github.com/users/vishr/followers","following_url":"https://api.github.com/users/vishr/following{/other_user}","gists_url":"https://api.github.com/users/vishr/gists{/gist_id}","starred_url":"https://api.github.com/users/vishr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vishr/subscriptions","organizations_url":"https://api.github.com/users/vishr/orgs","repos_url":"https://api.github.com/users/vishr/repos","events_url":"https://api.github.com/users/vishr/events{/privacy}","received_events_url":"https://api.github.com/users/vishr/received_events","type":"User","site_admin":false},"body":"Signed-off-by: Vishal Rana <vr@labstack.com>","created_at":"2016-03-27T18:57:17Z","updated_at":"2016-03-28T01:27:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"27a43c0a88229e8a5de8de58ad1b407e986fc36d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/pulls/2002/commits","review_comments_url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/pulls/2002/comments","review_comment_url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/issues/2002/comments","statuses_url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/statuses/5dd76c91a23dfb9ece002b8fd4a1f0b41ac55771","head":{"label":"vishr:master","ref":"master","sha":"5dd76c91a23dfb9ece002b8fd4a1f0b41ac55771","user":{"login":"vishr","id":314036,"avatar_url":"https://avatars.githubusercontent.com/u/314036?v=3","gravatar_id":"","url":"https://api.github.com/users/vishr","html_url":"https://github.com/vishr","followers_url":"https://api.github.com/users/vishr/followers","following_url":"https://api.github.com/users/vishr/following{/other_user}","gists_url":"https://api.github.com/users/vishr/gists{/gist_id}","starred_url":"https://api.github.com/users/vishr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vishr/subscriptions","organizations_url":"https://api.github.com/users/vishr/orgs","repos_url":"https://api.github.com/users/vishr/repos","events_url":"https://api.github.com/users/vishr/events{/privacy}","received_events_url":"https://api.github.com/users/vishr/received_events","type":"User","site_admin":false},"repo":{"id":54068706,"name":"FrameworkBenchmarks","full_name":"vishr/FrameworkBenchmarks","owner":{"login":"vishr","id":314036,"avatar_url":"https://avatars.githubusercontent.com/u/314036?v=3","gravatar_id":"","url":"https://api.github.com/users/vishr","html_url":"https://github.com/vishr","followers_url":"https://api.github.com/users/vishr/followers","following_url":"https://api.github.com/users/vishr/following{/other_user}","gists_url":"https://api.github.com/users/vishr/gists{/gist_id}","starred_url":"https://api.github.com/users/vishr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vishr/subscriptions","organizations_url":"https://api.github.com/users/vishr/orgs","repos_url":"https://api.github.com/users/vishr/repos","events_url":"https://api.github.com/users/vishr/events{/privacy}","received_events_url":"https://api.github.com/users/vishr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vishr/FrameworkBenchmarks","description":"Source code for the framework benchmarking project","fork":true,"url":"https://api.github.com/repos/vishr/FrameworkBenchmarks","forks_url":"https://api.github.com/repos/vishr/FrameworkBenchmarks/forks","keys_url":"https://api.github.com/repos/vishr/FrameworkBenchmarks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vishr/FrameworkBenchmarks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vishr/FrameworkBenchmarks/teams","hooks_url":"https://api.github.com/repos/vishr/FrameworkBenchmarks/hooks","issue_events_url":"https://api.github.com/repos/vishr/FrameworkBenchmarks/issues/events{/number}","events_url":"https://api.github.com/repos/vishr/FrameworkBenchmarks/events","assignees_url":"https://api.github.com/repos/vishr/FrameworkBenchmarks/assignees{/user}","branches_url":"https://api.github.com/repos/vishr/FrameworkBenchmarks/branches{/branch}","tags_url":"https://api.github.com/repos/vishr/FrameworkBenchmarks/tags","blobs_url":"https://api.github.com/repos/vishr/FrameworkBenchmarks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vishr/FrameworkBenchmarks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vishr/FrameworkBenchmarks/git/refs{/sha}","trees_url":"https://api.github.com/repos/vishr/FrameworkBenchmarks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vishr/FrameworkBenchmarks/statuses/{sha}","languages_url":"https://api.github.com/repos/vishr/FrameworkBenchmarks/languages","stargazers_url":"https://api.github.com/repos/vishr/FrameworkBenchmarks/stargazers","contributors_url":"https://api.github.com/repos/vishr/FrameworkBenchmarks/contributors","subscribers_url":"https://api.github.com/repos/vishr/FrameworkBenchmarks/subscribers","subscription_url":"https://api.github.com/repos/vishr/FrameworkBenchmarks/subscription","commits_url":"https://api.github.com/repos/vishr/FrameworkBenchmarks/commits{/sha}","git_commits_url":"https://api.github.com/repos/vishr/FrameworkBenchmarks/git/commits{/sha}","comments_url":"https://api.github.com/repos/vishr/FrameworkBenchmarks/comments{/number}","issue_comment_url":"https://api.github.com/repos/vishr/FrameworkBenchmarks/issues/comments{/number}","contents_url":"https://api.github.com/repos/vishr/FrameworkBenchmarks/contents/{+path}","compare_url":"https://api.github.com/repos/vishr/FrameworkBenchmarks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vishr/FrameworkBenchmarks/merges","archive_url":"https://api.github.com/repos/vishr/FrameworkBenchmarks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vishr/FrameworkBenchmarks/downloads","issues_url":"https://api.github.com/repos/vishr/FrameworkBenchmarks/issues{/number}","pulls_url":"https://api.github.com/repos/vishr/FrameworkBenchmarks/pulls{/number}","milestones_url":"https://api.github.com/repos/vishr/FrameworkBenchmarks/milestones{/number}","notifications_url":"https://api.github.com/repos/vishr/FrameworkBenchmarks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vishr/FrameworkBenchmarks/labels{/name}","releases_url":"https://api.github.com/repos/vishr/FrameworkBenchmarks/releases{/id}","deployments_url":"https://api.github.com/repos/vishr/FrameworkBenchmarks/deployments","created_at":"2016-03-16T21:44:54Z","updated_at":"2016-03-24T15:02:11Z","pushed_at":"2016-03-27T20:57:33Z","git_url":"git://github.com/vishr/FrameworkBenchmarks.git","ssh_url":"git@github.com:vishr/FrameworkBenchmarks.git","clone_url":"https://github.com/vishr/FrameworkBenchmarks.git","svn_url":"https://github.com/vishr/FrameworkBenchmarks","homepage":"http://www.techempower.com/benchmarks/","size":256082,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"TechEmpower:master","ref":"master","sha":"b349cf649c17c5c287c54a5c359933028ddaad68","user":{"login":"TechEmpower","id":3910062,"avatar_url":"https://avatars.githubusercontent.com/u/3910062?v=3","gravatar_id":"","url":"https://api.github.com/users/TechEmpower","html_url":"https://github.com/TechEmpower","followers_url":"https://api.github.com/users/TechEmpower/followers","following_url":"https://api.github.com/users/TechEmpower/following{/other_user}","gists_url":"https://api.github.com/users/TechEmpower/gists{/gist_id}","starred_url":"https://api.github.com/users/TechEmpower/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TechEmpower/subscriptions","organizations_url":"https://api.github.com/users/TechEmpower/orgs","repos_url":"https://api.github.com/users/TechEmpower/repos","events_url":"https://api.github.com/users/TechEmpower/events{/privacy}","received_events_url":"https://api.github.com/users/TechEmpower/received_events","type":"Organization","site_admin":false},"repo":{"id":8957264,"name":"FrameworkBenchmarks","full_name":"TechEmpower/FrameworkBenchmarks","owner":{"login":"TechEmpower","id":3910062,"avatar_url":"https://avatars.githubusercontent.com/u/3910062?v=3","gravatar_id":"","url":"https://api.github.com/users/TechEmpower","html_url":"https://github.com/TechEmpower","followers_url":"https://api.github.com/users/TechEmpower/followers","following_url":"https://api.github.com/users/TechEmpower/following{/other_user}","gists_url":"https://api.github.com/users/TechEmpower/gists{/gist_id}","starred_url":"https://api.github.com/users/TechEmpower/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TechEmpower/subscriptions","organizations_url":"https://api.github.com/users/TechEmpower/orgs","repos_url":"https://api.github.com/users/TechEmpower/repos","events_url":"https://api.github.com/users/TechEmpower/events{/privacy}","received_events_url":"https://api.github.com/users/TechEmpower/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TechEmpower/FrameworkBenchmarks","description":"Source code for the framework benchmarking project","fork":false,"url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks","forks_url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/forks","keys_url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/teams","hooks_url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/hooks","issue_events_url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/issues/events{/number}","events_url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/events","assignees_url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/assignees{/user}","branches_url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/branches{/branch}","tags_url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/tags","blobs_url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/git/refs{/sha}","trees_url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/statuses/{sha}","languages_url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/languages","stargazers_url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/stargazers","contributors_url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/contributors","subscribers_url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/subscribers","subscription_url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/subscription","commits_url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/commits{/sha}","git_commits_url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/git/commits{/sha}","comments_url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/comments{/number}","issue_comment_url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/issues/comments{/number}","contents_url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/contents/{+path}","compare_url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/merges","archive_url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/downloads","issues_url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/issues{/number}","pulls_url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/pulls{/number}","milestones_url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/milestones{/number}","notifications_url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/labels{/name}","releases_url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/releases{/id}","deployments_url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/deployments","created_at":"2013-03-22T17:33:54Z","updated_at":"2016-03-26T07:02:28Z","pushed_at":"2016-03-28T01:14:57Z","git_url":"git://github.com/TechEmpower/FrameworkBenchmarks.git","ssh_url":"git@github.com:TechEmpower/FrameworkBenchmarks.git","clone_url":"https://github.com/TechEmpower/FrameworkBenchmarks.git","svn_url":"https://github.com/TechEmpower/FrameworkBenchmarks","homepage":"http://www.techempower.com/benchmarks/","size":273672,"stargazers_count":2130,"watchers_count":2130,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":730,"mirror_url":null,"open_issues_count":118,"forks":730,"open_issues":118,"watchers":2130,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/pulls/2002"},"html":{"href":"https://github.com/TechEmpower/FrameworkBenchmarks/pull/2002"},"issue":{"href":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/issues/2002"},"comments":{"href":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/issues/2002/comments"},"review_comments":{"href":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/pulls/2002/comments"},"review_comment":{"href":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/pulls/2002/commits"},"statuses":{"href":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/statuses/5dd76c91a23dfb9ece002b8fd4a1f0b41ac55771"}}}}