{"action":"opened","number":22,"pull_request":{"url":"https://api.github.com/repos/mroth/phoenix-showdown/pulls/22","id":48947392,"html_url":"https://github.com/mroth/phoenix-showdown/pull/22","diff_url":"https://github.com/mroth/phoenix-showdown/pull/22.diff","patch_url":"https://github.com/mroth/phoenix-showdown/pull/22.patch","issue_url":"https://api.github.com/repos/mroth/phoenix-showdown/issues/22","number":22,"state":"open","locked":false,"title":"Added Undertow example","user":{"login":"tomwhoiscontrary","id":539012,"avatar_url":"https://avatars.githubusercontent.com/u/539012?v=3","gravatar_id":"","url":"https://api.github.com/users/tomwhoiscontrary","html_url":"https://github.com/tomwhoiscontrary","followers_url":"https://api.github.com/users/tomwhoiscontrary/followers","following_url":"https://api.github.com/users/tomwhoiscontrary/following{/other_user}","gists_url":"https://api.github.com/users/tomwhoiscontrary/gists{/gist_id}","starred_url":"https://api.github.com/users/tomwhoiscontrary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomwhoiscontrary/subscriptions","organizations_url":"https://api.github.com/users/tomwhoiscontrary/orgs","repos_url":"https://api.github.com/users/tomwhoiscontrary/repos","events_url":"https://api.github.com/users/tomwhoiscontrary/events{/privacy}","received_events_url":"https://api.github.com/users/tomwhoiscontrary/received_events","type":"User","site_admin":false},"body":"I thought it would be interesting to add a plain Java example. I picked [Undertow](http://undertow.io/), because it's a reasonably popular, actively developed, modern Java kind-of-equivalent to Sinatra. It's also very fast, and i suppose i have a vested interest in showing Java in a good light. I'm using Mustache for templating - it's nice and simple and, again, fairly fast.\r\n\r\nI've added an undertow benchmarker, which is built with Gradle, and includes a Procfile, although i haven't actually tested the Procfile.\r\n\r\nI added the relevant lines to the bootstrap scripts. The only package dependency is Java, and that is installed by the Play bootstrap. Gradle is downloaded as part of the build.\r\n\r\nI ran the Sinatra and Undertow benchmarks on my aged MacBook, and Undertow came out about eight times faster. It got progressively faster and more consistent as i ran it, so perhaps it's worth doing a warmup run of wrk before each measurement.\r\n\r\nI have no idea if you're interested in additional frameworks, but i was curious, and i thought you might be. I also have no idea if you consider Undertow to be a suitable comparison; it's fairly spartan even in comparison to Sinatra, and certainly isn't an equivalent to Rails or Play.","created_at":"2015-10-27T23:33:54Z","updated_at":"2015-10-27T23:33:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mroth/phoenix-showdown/pulls/22/commits","review_comments_url":"https://api.github.com/repos/mroth/phoenix-showdown/pulls/22/comments","review_comment_url":"https://api.github.com/repos/mroth/phoenix-showdown/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mroth/phoenix-showdown/issues/22/comments","statuses_url":"https://api.github.com/repos/mroth/phoenix-showdown/statuses/492594b2ae291d0151a7b63ba98c9845f90ad59f","head":{"label":"tomwhoiscontrary:master","ref":"master","sha":"492594b2ae291d0151a7b63ba98c9845f90ad59f","user":{"login":"tomwhoiscontrary","id":539012,"avatar_url":"https://avatars.githubusercontent.com/u/539012?v=3","gravatar_id":"","url":"https://api.github.com/users/tomwhoiscontrary","html_url":"https://github.com/tomwhoiscontrary","followers_url":"https://api.github.com/users/tomwhoiscontrary/followers","following_url":"https://api.github.com/users/tomwhoiscontrary/following{/other_user}","gists_url":"https://api.github.com/users/tomwhoiscontrary/gists{/gist_id}","starred_url":"https://api.github.com/users/tomwhoiscontrary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomwhoiscontrary/subscriptions","organizations_url":"https://api.github.com/users/tomwhoiscontrary/orgs","repos_url":"https://api.github.com/users/tomwhoiscontrary/repos","events_url":"https://api.github.com/users/tomwhoiscontrary/events{/privacy}","received_events_url":"https://api.github.com/users/tomwhoiscontrary/received_events","type":"User","site_admin":false},"repo":{"id":45076256,"name":"phoenix-showdown","full_name":"tomwhoiscontrary/phoenix-showdown","owner":{"login":"tomwhoiscontrary","id":539012,"avatar_url":"https://avatars.githubusercontent.com/u/539012?v=3","gravatar_id":"","url":"https://api.github.com/users/tomwhoiscontrary","html_url":"https://github.com/tomwhoiscontrary","followers_url":"https://api.github.com/users/tomwhoiscontrary/followers","following_url":"https://api.github.com/users/tomwhoiscontrary/following{/other_user}","gists_url":"https://api.github.com/users/tomwhoiscontrary/gists{/gist_id}","starred_url":"https://api.github.com/users/tomwhoiscontrary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomwhoiscontrary/subscriptions","organizations_url":"https://api.github.com/users/tomwhoiscontrary/orgs","repos_url":"https://api.github.com/users/tomwhoiscontrary/repos","events_url":"https://api.github.com/users/tomwhoiscontrary/events{/privacy}","received_events_url":"https://api.github.com/users/tomwhoiscontrary/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tomwhoiscontrary/phoenix-showdown","description":":horse_racing: benchmark Sinatra-like web frameworks","fork":true,"url":"https://api.github.com/repos/tomwhoiscontrary/phoenix-showdown","forks_url":"https://api.github.com/repos/tomwhoiscontrary/phoenix-showdown/forks","keys_url":"https://api.github.com/repos/tomwhoiscontrary/phoenix-showdown/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tomwhoiscontrary/phoenix-showdown/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tomwhoiscontrary/phoenix-showdown/teams","hooks_url":"https://api.github.com/repos/tomwhoiscontrary/phoenix-showdown/hooks","issue_events_url":"https://api.github.com/repos/tomwhoiscontrary/phoenix-showdown/issues/events{/number}","events_url":"https://api.github.com/repos/tomwhoiscontrary/phoenix-showdown/events","assignees_url":"https://api.github.com/repos/tomwhoiscontrary/phoenix-showdown/assignees{/user}","branches_url":"https://api.github.com/repos/tomwhoiscontrary/phoenix-showdown/branches{/branch}","tags_url":"https://api.github.com/repos/tomwhoiscontrary/phoenix-showdown/tags","blobs_url":"https://api.github.com/repos/tomwhoiscontrary/phoenix-showdown/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tomwhoiscontrary/phoenix-showdown/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tomwhoiscontrary/phoenix-showdown/git/refs{/sha}","trees_url":"https://api.github.com/repos/tomwhoiscontrary/phoenix-showdown/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tomwhoiscontrary/phoenix-showdown/statuses/{sha}","languages_url":"https://api.github.com/repos/tomwhoiscontrary/phoenix-showdown/languages","stargazers_url":"https://api.github.com/repos/tomwhoiscontrary/phoenix-showdown/stargazers","contributors_url":"https://api.github.com/repos/tomwhoiscontrary/phoenix-showdown/contributors","subscribers_url":"https://api.github.com/repos/tomwhoiscontrary/phoenix-showdown/subscribers","subscription_url":"https://api.github.com/repos/tomwhoiscontrary/phoenix-showdown/subscription","commits_url":"https://api.github.com/repos/tomwhoiscontrary/phoenix-showdown/commits{/sha}","git_commits_url":"https://api.github.com/repos/tomwhoiscontrary/phoenix-showdown/git/commits{/sha}","comments_url":"https://api.github.com/repos/tomwhoiscontrary/phoenix-showdown/comments{/number}","issue_comment_url":"https://api.github.com/repos/tomwhoiscontrary/phoenix-showdown/issues/comments{/number}","contents_url":"https://api.github.com/repos/tomwhoiscontrary/phoenix-showdown/contents/{+path}","compare_url":"https://api.github.com/repos/tomwhoiscontrary/phoenix-showdown/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tomwhoiscontrary/phoenix-showdown/merges","archive_url":"https://api.github.com/repos/tomwhoiscontrary/phoenix-showdown/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tomwhoiscontrary/phoenix-showdown/downloads","issues_url":"https://api.github.com/repos/tomwhoiscontrary/phoenix-showdown/issues{/number}","pulls_url":"https://api.github.com/repos/tomwhoiscontrary/phoenix-showdown/pulls{/number}","milestones_url":"https://api.github.com/repos/tomwhoiscontrary/phoenix-showdown/milestones{/number}","notifications_url":"https://api.github.com/repos/tomwhoiscontrary/phoenix-showdown/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tomwhoiscontrary/phoenix-showdown/labels{/name}","releases_url":"https://api.github.com/repos/tomwhoiscontrary/phoenix-showdown/releases{/id}","created_at":"2015-10-27T23:22:59Z","updated_at":"2015-10-27T23:23:00Z","pushed_at":"2015-10-27T23:23:56Z","git_url":"git://github.com/tomwhoiscontrary/phoenix-showdown.git","ssh_url":"git@github.com:tomwhoiscontrary/phoenix-showdown.git","clone_url":"https://github.com/tomwhoiscontrary/phoenix-showdown.git","svn_url":"https://github.com/tomwhoiscontrary/phoenix-showdown","homepage":"","size":1304,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":0,"default_branch":"master"}},"base":{"label":"mroth:master","ref":"master","sha":"55ae8c7ba33b9cd6ff8cb4ba9fd56b231f29a7f3","user":{"login":"mroth","id":40650,"avatar_url":"https://avatars.githubusercontent.com/u/40650?v=3","gravatar_id":"","url":"https://api.github.com/users/mroth","html_url":"https://github.com/mroth","followers_url":"https://api.github.com/users/mroth/followers","following_url":"https://api.github.com/users/mroth/following{/other_user}","gists_url":"https://api.github.com/users/mroth/gists{/gist_id}","starred_url":"https://api.github.com/users/mroth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mroth/subscriptions","organizations_url":"https://api.github.com/users/mroth/orgs","repos_url":"https://api.github.com/users/mroth/repos","events_url":"https://api.github.com/users/mroth/events{/privacy}","received_events_url":"https://api.github.com/users/mroth/received_events","type":"User","site_admin":false},"repo":{"id":22300494,"name":"phoenix-showdown","full_name":"mroth/phoenix-showdown","owner":{"login":"mroth","id":40650,"avatar_url":"https://avatars.githubusercontent.com/u/40650?v=3","gravatar_id":"","url":"https://api.github.com/users/mroth","html_url":"https://github.com/mroth","followers_url":"https://api.github.com/users/mroth/followers","following_url":"https://api.github.com/users/mroth/following{/other_user}","gists_url":"https://api.github.com/users/mroth/gists{/gist_id}","starred_url":"https://api.github.com/users/mroth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mroth/subscriptions","organizations_url":"https://api.github.com/users/mroth/orgs","repos_url":"https://api.github.com/users/mroth/repos","events_url":"https://api.github.com/users/mroth/events{/privacy}","received_events_url":"https://api.github.com/users/mroth/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mroth/phoenix-showdown","description":":horse_racing: benchmark Sinatra-like web frameworks","fork":false,"url":"https://api.github.com/repos/mroth/phoenix-showdown","forks_url":"https://api.github.com/repos/mroth/phoenix-showdown/forks","keys_url":"https://api.github.com/repos/mroth/phoenix-showdown/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mroth/phoenix-showdown/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mroth/phoenix-showdown/teams","hooks_url":"https://api.github.com/repos/mroth/phoenix-showdown/hooks","issue_events_url":"https://api.github.com/repos/mroth/phoenix-showdown/issues/events{/number}","events_url":"https://api.github.com/repos/mroth/phoenix-showdown/events","assignees_url":"https://api.github.com/repos/mroth/phoenix-showdown/assignees{/user}","branches_url":"https://api.github.com/repos/mroth/phoenix-showdown/branches{/branch}","tags_url":"https://api.github.com/repos/mroth/phoenix-showdown/tags","blobs_url":"https://api.github.com/repos/mroth/phoenix-showdown/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mroth/phoenix-showdown/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mroth/phoenix-showdown/git/refs{/sha}","trees_url":"https://api.github.com/repos/mroth/phoenix-showdown/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mroth/phoenix-showdown/statuses/{sha}","languages_url":"https://api.github.com/repos/mroth/phoenix-showdown/languages","stargazers_url":"https://api.github.com/repos/mroth/phoenix-showdown/stargazers","contributors_url":"https://api.github.com/repos/mroth/phoenix-showdown/contributors","subscribers_url":"https://api.github.com/repos/mroth/phoenix-showdown/subscribers","subscription_url":"https://api.github.com/repos/mroth/phoenix-showdown/subscription","commits_url":"https://api.github.com/repos/mroth/phoenix-showdown/commits{/sha}","git_commits_url":"https://api.github.com/repos/mroth/phoenix-showdown/git/commits{/sha}","comments_url":"https://api.github.com/repos/mroth/phoenix-showdown/comments{/number}","issue_comment_url":"https://api.github.com/repos/mroth/phoenix-showdown/issues/comments{/number}","contents_url":"https://api.github.com/repos/mroth/phoenix-showdown/contents/{+path}","compare_url":"https://api.github.com/repos/mroth/phoenix-showdown/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mroth/phoenix-showdown/merges","archive_url":"https://api.github.com/repos/mroth/phoenix-showdown/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mroth/phoenix-showdown/downloads","issues_url":"https://api.github.com/repos/mroth/phoenix-showdown/issues{/number}","pulls_url":"https://api.github.com/repos/mroth/phoenix-showdown/pulls{/number}","milestones_url":"https://api.github.com/repos/mroth/phoenix-showdown/milestones{/number}","notifications_url":"https://api.github.com/repos/mroth/phoenix-showdown/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mroth/phoenix-showdown/labels{/name}","releases_url":"https://api.github.com/repos/mroth/phoenix-showdown/releases{/id}","created_at":"2014-07-27T01:39:27Z","updated_at":"2015-10-27T20:02:58Z","pushed_at":"2015-10-27T23:33:54Z","git_url":"git://github.com/mroth/phoenix-showdown.git","ssh_url":"git@github.com:mroth/phoenix-showdown.git","clone_url":"https://github.com/mroth/phoenix-showdown.git","svn_url":"https://github.com/mroth/phoenix-showdown","homepage":"","size":1431,"stargazers_count":288,"watchers_count":288,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":32,"mirror_url":null,"open_issues_count":9,"forks":32,"open_issues":9,"watchers":288,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mroth/phoenix-showdown/pulls/22"},"html":{"href":"https://github.com/mroth/phoenix-showdown/pull/22"},"issue":{"href":"https://api.github.com/repos/mroth/phoenix-showdown/issues/22"},"comments":{"href":"https://api.github.com/repos/mroth/phoenix-showdown/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/mroth/phoenix-showdown/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/mroth/phoenix-showdown/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mroth/phoenix-showdown/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/mroth/phoenix-showdown/statuses/492594b2ae291d0151a7b63ba98c9845f90ad59f"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":417,"deletions":0,"changed_files":14}}