{"action":"opened","number":30,"pull_request":{"url":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/pulls/30","id":69009895,"html_url":"https://github.com/bazingatechnologies/FSharp.Data.GraphQL/pull/30","diff_url":"https://github.com/bazingatechnologies/FSharp.Data.GraphQL/pull/30.diff","patch_url":"https://github.com/bazingatechnologies/FSharp.Data.GraphQL/pull/30.patch","issue_url":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/issues/30","number":30,"state":"open","locked":false,"title":"Added perf benchmark project","user":{"login":"Horusiath","id":679705,"avatar_url":"https://avatars.githubusercontent.com/u/679705?v=3","gravatar_id":"","url":"https://api.github.com/users/Horusiath","html_url":"https://github.com/Horusiath","followers_url":"https://api.github.com/users/Horusiath/followers","following_url":"https://api.github.com/users/Horusiath/following{/other_user}","gists_url":"https://api.github.com/users/Horusiath/gists{/gist_id}","starred_url":"https://api.github.com/users/Horusiath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Horusiath/subscriptions","organizations_url":"https://api.github.com/users/Horusiath/orgs","repos_url":"https://api.github.com/users/Horusiath/repos","events_url":"https://api.github.com/users/Horusiath/events{/privacy}","received_events_url":"https://api.github.com/users/Horusiath/received_events","type":"User","site_admin":false},"body":"- Added performance benchmarking tests.\r\n- Additionally removed multiple optional parameters from `Schema` in favor of single optional `SchemaConfig` record.\r\n\r\n## Initial benchmarks results\r\n\r\nThey don't look impressive so we definitely have a room for improvements here:\r\n\r\n### Parsing benchmark\r\n```ini\r\n\r\nBenchmarkDotNet=v0.9.5.0\r\nOS=Microsoft Windows NT 6.2.9200.0\r\nProcessor=Intel(R) Core(TM) i5-4430 CPU @ 3.00GHz, ProcessorCount=4\r\nFrequency=2929689 ticks, Resolution=341.3332 ns, Timer=TSC\r\nHostCLR=MS.NET 4.0.30319.42000, Arch=32-bit RELEASE\r\nJitModules=clrjit-v4.6.1055.0\r\n\r\nType=ParsingBenchmark  Mode=Throughput  \r\n\r\n```\r\n            Method |      Median |    StdDev |        Mean |         Min |         Max |     Op/s |\r\n------------------ |------------ |---------- |------------ |------------ |------------ |--------- |\r\n  ParseSimpleQuery |  33.8274 us | 0.3540 us |  33.7482 us |  33.0816 us |  34.1611 us | 29631.22 |\r\n ParseComplexQuery | 577.0307 us | 8.9946 us | 578.8314 us | 566.7890 us | 594.1037 us |  1727.62 |\r\n\r\n### Querying benchmark\r\n```ini\r\n\r\nBenchmarkDotNet=v0.9.5.0\r\nOS=Microsoft Windows NT 6.2.9200.0\r\nProcessor=Intel(R) Core(TM) i5-4430 CPU @ 3.00GHz, ProcessorCount=4\r\nFrequency=2929689 ticks, Resolution=341.3332 ns, Timer=TSC\r\nHostCLR=MS.NET 4.0.30319.42000, Arch=32-bit RELEASE\r\nJitModules=clrjit-v4.6.1055.0\r\n\r\nType=SimpleExecutionBenchmark  Mode=Throughput  \r\n\r\n```\r\n                       Method |      Median |     StdDev |        Mean |         Min |         Max |     Op/s |\r\n----------------------------- |------------ |----------- |------------ |------------ |------------ |--------- |\r\n BenchmarkSimpleQueryUnparsed |  71.0288 us |  0.8807 us |  71.3812 us |  70.0700 us |  72.8218 us |  14009.3 |\r\n   BenchmarkSimpleQueryParsed |  24.4913 us |  0.6096 us |  24.5193 us |  23.8519 us |  26.7201 us | 40784.22 |\r\n   BenchmarkFlatQueryUnparsed | 125.2367 us |  3.0207 us | 126.3752 us | 124.3089 us | 135.1953 us |  7912.95 |\r\n     BenchmarkFlatQueryParsed |  52.4176 us |  2.2771 us |  52.3338 us |  48.0172 us |  55.2310 us | 19108.12 |\r\n BenchmarkNestedQueryUnparsed | 394.4258 us |  9.6195 us | 398.5617 us | 390.9118 us | 427.4011 us |  2509.02 |\r\n   BenchmarkNestedQueryParsed | 170.9940 us | 13.3266 us | 175.4107 us | 165.8474 us | 223.2751 us |  5700.91 |\r\n\r\n","created_at":"2016-05-05T13:54:44Z","updated_at":"2016-05-05T13:54:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/pulls/30/commits","review_comments_url":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/pulls/30/comments","review_comment_url":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/issues/30/comments","statuses_url":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/statuses/0848bae61393d0cd5bec0f44524db8318de0f971","head":{"label":"Horusiath:benchmarks-init","ref":"benchmarks-init","sha":"0848bae61393d0cd5bec0f44524db8318de0f971","user":{"login":"Horusiath","id":679705,"avatar_url":"https://avatars.githubusercontent.com/u/679705?v=3","gravatar_id":"","url":"https://api.github.com/users/Horusiath","html_url":"https://github.com/Horusiath","followers_url":"https://api.github.com/users/Horusiath/followers","following_url":"https://api.github.com/users/Horusiath/following{/other_user}","gists_url":"https://api.github.com/users/Horusiath/gists{/gist_id}","starred_url":"https://api.github.com/users/Horusiath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Horusiath/subscriptions","organizations_url":"https://api.github.com/users/Horusiath/orgs","repos_url":"https://api.github.com/users/Horusiath/repos","events_url":"https://api.github.com/users/Horusiath/events{/privacy}","received_events_url":"https://api.github.com/users/Horusiath/received_events","type":"User","site_admin":false},"repo":{"id":55262161,"name":"FSharp.Data.GraphQL","full_name":"Horusiath/FSharp.Data.GraphQL","owner":{"login":"Horusiath","id":679705,"avatar_url":"https://avatars.githubusercontent.com/u/679705?v=3","gravatar_id":"","url":"https://api.github.com/users/Horusiath","html_url":"https://github.com/Horusiath","followers_url":"https://api.github.com/users/Horusiath/followers","following_url":"https://api.github.com/users/Horusiath/following{/other_user}","gists_url":"https://api.github.com/users/Horusiath/gists{/gist_id}","starred_url":"https://api.github.com/users/Horusiath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Horusiath/subscriptions","organizations_url":"https://api.github.com/users/Horusiath/orgs","repos_url":"https://api.github.com/users/Horusiath/repos","events_url":"https://api.github.com/users/Horusiath/events{/privacy}","received_events_url":"https://api.github.com/users/Horusiath/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Horusiath/FSharp.Data.GraphQL","description":"FSharp implementation of Facebook GraphQL query language","fork":true,"url":"https://api.github.com/repos/Horusiath/FSharp.Data.GraphQL","forks_url":"https://api.github.com/repos/Horusiath/FSharp.Data.GraphQL/forks","keys_url":"https://api.github.com/repos/Horusiath/FSharp.Data.GraphQL/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Horusiath/FSharp.Data.GraphQL/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Horusiath/FSharp.Data.GraphQL/teams","hooks_url":"https://api.github.com/repos/Horusiath/FSharp.Data.GraphQL/hooks","issue_events_url":"https://api.github.com/repos/Horusiath/FSharp.Data.GraphQL/issues/events{/number}","events_url":"https://api.github.com/repos/Horusiath/FSharp.Data.GraphQL/events","assignees_url":"https://api.github.com/repos/Horusiath/FSharp.Data.GraphQL/assignees{/user}","branches_url":"https://api.github.com/repos/Horusiath/FSharp.Data.GraphQL/branches{/branch}","tags_url":"https://api.github.com/repos/Horusiath/FSharp.Data.GraphQL/tags","blobs_url":"https://api.github.com/repos/Horusiath/FSharp.Data.GraphQL/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Horusiath/FSharp.Data.GraphQL/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Horusiath/FSharp.Data.GraphQL/git/refs{/sha}","trees_url":"https://api.github.com/repos/Horusiath/FSharp.Data.GraphQL/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Horusiath/FSharp.Data.GraphQL/statuses/{sha}","languages_url":"https://api.github.com/repos/Horusiath/FSharp.Data.GraphQL/languages","stargazers_url":"https://api.github.com/repos/Horusiath/FSharp.Data.GraphQL/stargazers","contributors_url":"https://api.github.com/repos/Horusiath/FSharp.Data.GraphQL/contributors","subscribers_url":"https://api.github.com/repos/Horusiath/FSharp.Data.GraphQL/subscribers","subscription_url":"https://api.github.com/repos/Horusiath/FSharp.Data.GraphQL/subscription","commits_url":"https://api.github.com/repos/Horusiath/FSharp.Data.GraphQL/commits{/sha}","git_commits_url":"https://api.github.com/repos/Horusiath/FSharp.Data.GraphQL/git/commits{/sha}","comments_url":"https://api.github.com/repos/Horusiath/FSharp.Data.GraphQL/comments{/number}","issue_comment_url":"https://api.github.com/repos/Horusiath/FSharp.Data.GraphQL/issues/comments{/number}","contents_url":"https://api.github.com/repos/Horusiath/FSharp.Data.GraphQL/contents/{+path}","compare_url":"https://api.github.com/repos/Horusiath/FSharp.Data.GraphQL/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Horusiath/FSharp.Data.GraphQL/merges","archive_url":"https://api.github.com/repos/Horusiath/FSharp.Data.GraphQL/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Horusiath/FSharp.Data.GraphQL/downloads","issues_url":"https://api.github.com/repos/Horusiath/FSharp.Data.GraphQL/issues{/number}","pulls_url":"https://api.github.com/repos/Horusiath/FSharp.Data.GraphQL/pulls{/number}","milestones_url":"https://api.github.com/repos/Horusiath/FSharp.Data.GraphQL/milestones{/number}","notifications_url":"https://api.github.com/repos/Horusiath/FSharp.Data.GraphQL/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Horusiath/FSharp.Data.GraphQL/labels{/name}","releases_url":"https://api.github.com/repos/Horusiath/FSharp.Data.GraphQL/releases{/id}","deployments_url":"https://api.github.com/repos/Horusiath/FSharp.Data.GraphQL/deployments","created_at":"2016-04-01T21:02:13Z","updated_at":"2016-04-01T21:01:56Z","pushed_at":"2016-05-05T13:50:22Z","git_url":"git://github.com/Horusiath/FSharp.Data.GraphQL.git","ssh_url":"git@github.com:Horusiath/FSharp.Data.GraphQL.git","clone_url":"https://github.com/Horusiath/FSharp.Data.GraphQL.git","svn_url":"https://github.com/Horusiath/FSharp.Data.GraphQL","homepage":null,"size":259,"stargazers_count":0,"watchers_count":0,"language":null,"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":"bazingatechnologies:dev","ref":"dev","sha":"252cd377b1d3a5acee3230efb0b976c379a69845","user":{"login":"bazingatechnologies","id":18220376,"avatar_url":"https://avatars.githubusercontent.com/u/18220376?v=3","gravatar_id":"","url":"https://api.github.com/users/bazingatechnologies","html_url":"https://github.com/bazingatechnologies","followers_url":"https://api.github.com/users/bazingatechnologies/followers","following_url":"https://api.github.com/users/bazingatechnologies/following{/other_user}","gists_url":"https://api.github.com/users/bazingatechnologies/gists{/gist_id}","starred_url":"https://api.github.com/users/bazingatechnologies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bazingatechnologies/subscriptions","organizations_url":"https://api.github.com/users/bazingatechnologies/orgs","repos_url":"https://api.github.com/users/bazingatechnologies/repos","events_url":"https://api.github.com/users/bazingatechnologies/events{/privacy}","received_events_url":"https://api.github.com/users/bazingatechnologies/received_events","type":"Organization","site_admin":false},"repo":{"id":55262135,"name":"FSharp.Data.GraphQL","full_name":"bazingatechnologies/FSharp.Data.GraphQL","owner":{"login":"bazingatechnologies","id":18220376,"avatar_url":"https://avatars.githubusercontent.com/u/18220376?v=3","gravatar_id":"","url":"https://api.github.com/users/bazingatechnologies","html_url":"https://github.com/bazingatechnologies","followers_url":"https://api.github.com/users/bazingatechnologies/followers","following_url":"https://api.github.com/users/bazingatechnologies/following{/other_user}","gists_url":"https://api.github.com/users/bazingatechnologies/gists{/gist_id}","starred_url":"https://api.github.com/users/bazingatechnologies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bazingatechnologies/subscriptions","organizations_url":"https://api.github.com/users/bazingatechnologies/orgs","repos_url":"https://api.github.com/users/bazingatechnologies/repos","events_url":"https://api.github.com/users/bazingatechnologies/events{/privacy}","received_events_url":"https://api.github.com/users/bazingatechnologies/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bazingatechnologies/FSharp.Data.GraphQL","description":"FSharp implementation of Facebook GraphQL query language","fork":false,"url":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL","forks_url":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/forks","keys_url":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/teams","hooks_url":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/hooks","issue_events_url":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/issues/events{/number}","events_url":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/events","assignees_url":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/assignees{/user}","branches_url":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/branches{/branch}","tags_url":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/tags","blobs_url":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/git/refs{/sha}","trees_url":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/statuses/{sha}","languages_url":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/languages","stargazers_url":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/stargazers","contributors_url":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/contributors","subscribers_url":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/subscribers","subscription_url":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/subscription","commits_url":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/commits{/sha}","git_commits_url":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/git/commits{/sha}","comments_url":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/comments{/number}","issue_comment_url":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/issues/comments{/number}","contents_url":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/contents/{+path}","compare_url":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/merges","archive_url":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/downloads","issues_url":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/issues{/number}","pulls_url":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/pulls{/number}","milestones_url":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/milestones{/number}","notifications_url":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/labels{/name}","releases_url":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/releases{/id}","deployments_url":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/deployments","created_at":"2016-04-01T21:01:56Z","updated_at":"2016-05-03T10:13:52Z","pushed_at":"2016-05-05T05:48:35Z","git_url":"git://github.com/bazingatechnologies/FSharp.Data.GraphQL.git","ssh_url":"git@github.com:bazingatechnologies/FSharp.Data.GraphQL.git","clone_url":"https://github.com/bazingatechnologies/FSharp.Data.GraphQL.git","svn_url":"https://github.com/bazingatechnologies/FSharp.Data.GraphQL","homepage":null,"size":248,"stargazers_count":10,"watchers_count":10,"language":"F#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":15,"forks":2,"open_issues":15,"watchers":10,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/pulls/30"},"html":{"href":"https://github.com/bazingatechnologies/FSharp.Data.GraphQL/pull/30"},"issue":{"href":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/issues/30"},"comments":{"href":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/issues/30/comments"},"review_comments":{"href":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/pulls/30/comments"},"review_comment":{"href":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/pulls/30/commits"},"statuses":{"href":"https://api.github.com/repos/bazingatechnologies/FSharp.Data.GraphQL/statuses/0848bae61393d0cd5bec0f44524db8318de0f971"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":479,"deletions":13,"changed_files":16}}