{"action":"closed","number":52,"pull_request":{"url":"https://api.github.com/repos/repositive/event-store-rs/pulls/52","id":228116849,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI4MTE2ODQ5","html_url":"https://github.com/repositive/event-store-rs/pull/52","diff_url":"https://github.com/repositive/event-store-rs/pull/52.diff","patch_url":"https://github.com/repositive/event-store-rs/pull/52.patch","issue_url":"https://api.github.com/repos/repositive/event-store-rs/issues/52","number":52,"state":"closed","locked":false,"title":"[S] Add full postgres-backed store read benchmark","user":{"login":"jamwaffles","id":800791,"node_id":"MDQ6VXNlcjgwMDc5MQ==","avatar_url":"https://avatars1.githubusercontent.com/u/800791?v=4","gravatar_id":"","url":"https://api.github.com/users/jamwaffles","html_url":"https://github.com/jamwaffles","followers_url":"https://api.github.com/users/jamwaffles/followers","following_url":"https://api.github.com/users/jamwaffles/following{/other_user}","gists_url":"https://api.github.com/users/jamwaffles/gists{/gist_id}","starred_url":"https://api.github.com/users/jamwaffles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamwaffles/subscriptions","organizations_url":"https://api.github.com/users/jamwaffles/orgs","repos_url":"https://api.github.com/users/jamwaffles/repos","events_url":"https://api.github.com/users/jamwaffles/events{/privacy}","received_events_url":"https://api.github.com/users/jamwaffles/received_events","type":"User","site_admin":false},"body":"* Reads are more common than writes, so this benchmark only exercises the read paths\r\n* This PR also adds a function to create a randomly named database\r\n\r\nThe test methodology as described in code comments is the following:\r\n\r\n```\r\n/// This benchmark run attempts to exercise the store and cache by:\r\n///\r\n/// * Emptying the database\r\n/// * Saving 10 events\r\n/// * Aggregating (no cache)\r\n/// * Aggregating again (now there is a cache)\r\n/// * Saving 10 more events\r\n/// * Aggregating again (cached entry plus 10 new events)\r\n/// * Aggregating again (cache only)\r\n///\r\n/// It requires a running Postgres database. You can start one using `docker-compose up postgres` in\r\n/// the project repo.\r\n```","created_at":"2018-11-03T12:52:21Z","updated_at":"2018-11-09T22:32:59Z","closed_at":"2018-11-09T22:32:59Z","merged_at":"2018-11-09T22:32:59Z","merge_commit_sha":"cc03772f7c4798dfc524fde526ba76da67906a6f","assignee":null,"assignees":[],"requested_reviewers":[{"login":"Istar-Eldritch","id":3746468,"node_id":"MDQ6VXNlcjM3NDY0Njg=","avatar_url":"https://avatars3.githubusercontent.com/u/3746468?v=4","gravatar_id":"","url":"https://api.github.com/users/Istar-Eldritch","html_url":"https://github.com/Istar-Eldritch","followers_url":"https://api.github.com/users/Istar-Eldritch/followers","following_url":"https://api.github.com/users/Istar-Eldritch/following{/other_user}","gists_url":"https://api.github.com/users/Istar-Eldritch/gists{/gist_id}","starred_url":"https://api.github.com/users/Istar-Eldritch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Istar-Eldritch/subscriptions","organizations_url":"https://api.github.com/users/Istar-Eldritch/orgs","repos_url":"https://api.github.com/users/Istar-Eldritch/repos","events_url":"https://api.github.com/users/Istar-Eldritch/events{/privacy}","received_events_url":"https://api.github.com/users/Istar-Eldritch/received_events","type":"User","site_admin":false},{"login":"petereast","id":8693843,"node_id":"MDQ6VXNlcjg2OTM4NDM=","avatar_url":"https://avatars0.githubusercontent.com/u/8693843?v=4","gravatar_id":"","url":"https://api.github.com/users/petereast","html_url":"https://github.com/petereast","followers_url":"https://api.github.com/users/petereast/followers","following_url":"https://api.github.com/users/petereast/following{/other_user}","gists_url":"https://api.github.com/users/petereast/gists{/gist_id}","starred_url":"https://api.github.com/users/petereast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petereast/subscriptions","organizations_url":"https://api.github.com/users/petereast/orgs","repos_url":"https://api.github.com/users/petereast/repos","events_url":"https://api.github.com/users/petereast/events{/privacy}","received_events_url":"https://api.github.com/users/petereast/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/repositive/event-store-rs/pulls/52/commits","review_comments_url":"https://api.github.com/repos/repositive/event-store-rs/pulls/52/comments","review_comment_url":"https://api.github.com/repos/repositive/event-store-rs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/repositive/event-store-rs/issues/52/comments","statuses_url":"https://api.github.com/repos/repositive/event-store-rs/statuses/96705c055812a0970ac6262c14e1d7bceaaff612","head":{"label":"repositive:pg-benchmarks","ref":"pg-benchmarks","sha":"96705c055812a0970ac6262c14e1d7bceaaff612","user":{"login":"repositive","id":13749180,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNzQ5MTgw","avatar_url":"https://avatars1.githubusercontent.com/u/13749180?v=4","gravatar_id":"","url":"https://api.github.com/users/repositive","html_url":"https://github.com/repositive","followers_url":"https://api.github.com/users/repositive/followers","following_url":"https://api.github.com/users/repositive/following{/other_user}","gists_url":"https://api.github.com/users/repositive/gists{/gist_id}","starred_url":"https://api.github.com/users/repositive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/repositive/subscriptions","organizations_url":"https://api.github.com/users/repositive/orgs","repos_url":"https://api.github.com/users/repositive/repos","events_url":"https://api.github.com/users/repositive/events{/privacy}","received_events_url":"https://api.github.com/users/repositive/received_events","type":"Organization","site_admin":false},"repo":{"id":143427900,"node_id":"MDEwOlJlcG9zaXRvcnkxNDM0Mjc5MDA=","name":"event-store-rs","full_name":"repositive/event-store-rs","private":false,"owner":{"login":"repositive","id":13749180,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNzQ5MTgw","avatar_url":"https://avatars1.githubusercontent.com/u/13749180?v=4","gravatar_id":"","url":"https://api.github.com/users/repositive","html_url":"https://github.com/repositive","followers_url":"https://api.github.com/users/repositive/followers","following_url":"https://api.github.com/users/repositive/following{/other_user}","gists_url":"https://api.github.com/users/repositive/gists{/gist_id}","starred_url":"https://api.github.com/users/repositive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/repositive/subscriptions","organizations_url":"https://api.github.com/users/repositive/orgs","repos_url":"https://api.github.com/users/repositive/repos","events_url":"https://api.github.com/users/repositive/events{/privacy}","received_events_url":"https://api.github.com/users/repositive/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/repositive/event-store-rs","description":"Evolvable implementation of an Event Store in Rust.","fork":false,"url":"https://api.github.com/repos/repositive/event-store-rs","forks_url":"https://api.github.com/repos/repositive/event-store-rs/forks","keys_url":"https://api.github.com/repos/repositive/event-store-rs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/repositive/event-store-rs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/repositive/event-store-rs/teams","hooks_url":"https://api.github.com/repos/repositive/event-store-rs/hooks","issue_events_url":"https://api.github.com/repos/repositive/event-store-rs/issues/events{/number}","events_url":"https://api.github.com/repos/repositive/event-store-rs/events","assignees_url":"https://api.github.com/repos/repositive/event-store-rs/assignees{/user}","branches_url":"https://api.github.com/repos/repositive/event-store-rs/branches{/branch}","tags_url":"https://api.github.com/repos/repositive/event-store-rs/tags","blobs_url":"https://api.github.com/repos/repositive/event-store-rs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/repositive/event-store-rs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/repositive/event-store-rs/git/refs{/sha}","trees_url":"https://api.github.com/repos/repositive/event-store-rs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/repositive/event-store-rs/statuses/{sha}","languages_url":"https://api.github.com/repos/repositive/event-store-rs/languages","stargazers_url":"https://api.github.com/repos/repositive/event-store-rs/stargazers","contributors_url":"https://api.github.com/repos/repositive/event-store-rs/contributors","subscribers_url":"https://api.github.com/repos/repositive/event-store-rs/subscribers","subscription_url":"https://api.github.com/repos/repositive/event-store-rs/subscription","commits_url":"https://api.github.com/repos/repositive/event-store-rs/commits{/sha}","git_commits_url":"https://api.github.com/repos/repositive/event-store-rs/git/commits{/sha}","comments_url":"https://api.github.com/repos/repositive/event-store-rs/comments{/number}","issue_comment_url":"https://api.github.com/repos/repositive/event-store-rs/issues/comments{/number}","contents_url":"https://api.github.com/repos/repositive/event-store-rs/contents/{+path}","compare_url":"https://api.github.com/repos/repositive/event-store-rs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/repositive/event-store-rs/merges","archive_url":"https://api.github.com/repos/repositive/event-store-rs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/repositive/event-store-rs/downloads","issues_url":"https://api.github.com/repos/repositive/event-store-rs/issues{/number}","pulls_url":"https://api.github.com/repos/repositive/event-store-rs/pulls{/number}","milestones_url":"https://api.github.com/repos/repositive/event-store-rs/milestones{/number}","notifications_url":"https://api.github.com/repos/repositive/event-store-rs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/repositive/event-store-rs/labels{/name}","releases_url":"https://api.github.com/repos/repositive/event-store-rs/releases{/id}","deployments_url":"https://api.github.com/repos/repositive/event-store-rs/deployments","created_at":"2018-08-03T13:00:55Z","updated_at":"2018-11-01T16:32:33Z","pushed_at":"2018-11-09T22:32:58Z","git_url":"git://github.com/repositive/event-store-rs.git","ssh_url":"git@github.com:repositive/event-store-rs.git","clone_url":"https://github.com/repositive/event-store-rs.git","svn_url":"https://github.com/repositive/event-store-rs","homepage":"","size":131,"stargazers_count":0,"watchers_count":0,"language":"Rust","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"repositive:master","ref":"master","sha":"5fe94e7ca679d3ebac2dec3f198d6721f4fe0d97","user":{"login":"repositive","id":13749180,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNzQ5MTgw","avatar_url":"https://avatars1.githubusercontent.com/u/13749180?v=4","gravatar_id":"","url":"https://api.github.com/users/repositive","html_url":"https://github.com/repositive","followers_url":"https://api.github.com/users/repositive/followers","following_url":"https://api.github.com/users/repositive/following{/other_user}","gists_url":"https://api.github.com/users/repositive/gists{/gist_id}","starred_url":"https://api.github.com/users/repositive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/repositive/subscriptions","organizations_url":"https://api.github.com/users/repositive/orgs","repos_url":"https://api.github.com/users/repositive/repos","events_url":"https://api.github.com/users/repositive/events{/privacy}","received_events_url":"https://api.github.com/users/repositive/received_events","type":"Organization","site_admin":false},"repo":{"id":143427900,"node_id":"MDEwOlJlcG9zaXRvcnkxNDM0Mjc5MDA=","name":"event-store-rs","full_name":"repositive/event-store-rs","private":false,"owner":{"login":"repositive","id":13749180,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNzQ5MTgw","avatar_url":"https://avatars1.githubusercontent.com/u/13749180?v=4","gravatar_id":"","url":"https://api.github.com/users/repositive","html_url":"https://github.com/repositive","followers_url":"https://api.github.com/users/repositive/followers","following_url":"https://api.github.com/users/repositive/following{/other_user}","gists_url":"https://api.github.com/users/repositive/gists{/gist_id}","starred_url":"https://api.github.com/users/repositive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/repositive/subscriptions","organizations_url":"https://api.github.com/users/repositive/orgs","repos_url":"https://api.github.com/users/repositive/repos","events_url":"https://api.github.com/users/repositive/events{/privacy}","received_events_url":"https://api.github.com/users/repositive/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/repositive/event-store-rs","description":"Evolvable implementation of an Event Store in Rust.","fork":false,"url":"https://api.github.com/repos/repositive/event-store-rs","forks_url":"https://api.github.com/repos/repositive/event-store-rs/forks","keys_url":"https://api.github.com/repos/repositive/event-store-rs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/repositive/event-store-rs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/repositive/event-store-rs/teams","hooks_url":"https://api.github.com/repos/repositive/event-store-rs/hooks","issue_events_url":"https://api.github.com/repos/repositive/event-store-rs/issues/events{/number}","events_url":"https://api.github.com/repos/repositive/event-store-rs/events","assignees_url":"https://api.github.com/repos/repositive/event-store-rs/assignees{/user}","branches_url":"https://api.github.com/repos/repositive/event-store-rs/branches{/branch}","tags_url":"https://api.github.com/repos/repositive/event-store-rs/tags","blobs_url":"https://api.github.com/repos/repositive/event-store-rs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/repositive/event-store-rs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/repositive/event-store-rs/git/refs{/sha}","trees_url":"https://api.github.com/repos/repositive/event-store-rs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/repositive/event-store-rs/statuses/{sha}","languages_url":"https://api.github.com/repos/repositive/event-store-rs/languages","stargazers_url":"https://api.github.com/repos/repositive/event-store-rs/stargazers","contributors_url":"https://api.github.com/repos/repositive/event-store-rs/contributors","subscribers_url":"https://api.github.com/repos/repositive/event-store-rs/subscribers","subscription_url":"https://api.github.com/repos/repositive/event-store-rs/subscription","commits_url":"https://api.github.com/repos/repositive/event-store-rs/commits{/sha}","git_commits_url":"https://api.github.com/repos/repositive/event-store-rs/git/commits{/sha}","comments_url":"https://api.github.com/repos/repositive/event-store-rs/comments{/number}","issue_comment_url":"https://api.github.com/repos/repositive/event-store-rs/issues/comments{/number}","contents_url":"https://api.github.com/repos/repositive/event-store-rs/contents/{+path}","compare_url":"https://api.github.com/repos/repositive/event-store-rs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/repositive/event-store-rs/merges","archive_url":"https://api.github.com/repos/repositive/event-store-rs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/repositive/event-store-rs/downloads","issues_url":"https://api.github.com/repos/repositive/event-store-rs/issues{/number}","pulls_url":"https://api.github.com/repos/repositive/event-store-rs/pulls{/number}","milestones_url":"https://api.github.com/repos/repositive/event-store-rs/milestones{/number}","notifications_url":"https://api.github.com/repos/repositive/event-store-rs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/repositive/event-store-rs/labels{/name}","releases_url":"https://api.github.com/repos/repositive/event-store-rs/releases{/id}","deployments_url":"https://api.github.com/repos/repositive/event-store-rs/deployments","created_at":"2018-08-03T13:00:55Z","updated_at":"2018-11-01T16:32:33Z","pushed_at":"2018-11-09T22:32:58Z","git_url":"git://github.com/repositive/event-store-rs.git","ssh_url":"git@github.com:repositive/event-store-rs.git","clone_url":"https://github.com/repositive/event-store-rs.git","svn_url":"https://github.com/repositive/event-store-rs","homepage":"","size":131,"stargazers_count":0,"watchers_count":0,"language":"Rust","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/repositive/event-store-rs/pulls/52"},"html":{"href":"https://github.com/repositive/event-store-rs/pull/52"},"issue":{"href":"https://api.github.com/repos/repositive/event-store-rs/issues/52"},"comments":{"href":"https://api.github.com/repos/repositive/event-store-rs/issues/52/comments"},"review_comments":{"href":"https://api.github.com/repos/repositive/event-store-rs/pulls/52/comments"},"review_comment":{"href":"https://api.github.com/repos/repositive/event-store-rs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/repositive/event-store-rs/pulls/52/commits"},"statuses":{"href":"https://api.github.com/repos/repositive/event-store-rs/statuses/96705c055812a0970ac6262c14e1d7bceaaff612"}},"author_association":"COLLABORATOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"jamwaffles","id":800791,"node_id":"MDQ6VXNlcjgwMDc5MQ==","avatar_url":"https://avatars1.githubusercontent.com/u/800791?v=4","gravatar_id":"","url":"https://api.github.com/users/jamwaffles","html_url":"https://github.com/jamwaffles","followers_url":"https://api.github.com/users/jamwaffles/followers","following_url":"https://api.github.com/users/jamwaffles/following{/other_user}","gists_url":"https://api.github.com/users/jamwaffles/gists{/gist_id}","starred_url":"https://api.github.com/users/jamwaffles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamwaffles/subscriptions","organizations_url":"https://api.github.com/users/jamwaffles/orgs","repos_url":"https://api.github.com/users/jamwaffles/repos","events_url":"https://api.github.com/users/jamwaffles/events{/privacy}","received_events_url":"https://api.github.com/users/jamwaffles/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":3,"additions":188,"deletions":78,"changed_files":5}}
{"actor":{"display_login":"jamwaffles"}}