{"action":"created","comment":{"url":"https://api.github.com/repos/azeid/StableMatchingParallel/pulls/comments/236055029","pull_request_review_id":178063640,"id":236055029,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNjA1NTAyOQ==","diff_hunk":"@@ -0,0 +1,19 @@\n+package bench;\n+\n+import org.openjdk.jmh.runner.Runner;\n+import org.openjdk.jmh.runner.RunnerException;\n+import org.openjdk.jmh.runner.options.Options;\n+import org.openjdk.jmh.runner.options.OptionsBuilder;\n+\n+public class BenchmarkRunner {\n+\n+    public static void main(String[] args) throws RunnerException {\n+\n+        Options options = new OptionsBuilder()\n+                .include(BenchmarkRandom10.class.getSimpleName())","path":"src/test/java/bench/BenchmarkRunner.java","position":13,"original_position":13,"commit_id":"a5d1bb3e98aa60ccb00953e1866f6993a7665e7b","original_commit_id":"a5d1bb3e98aa60ccb00953e1866f6993a7665e7b","user":{"login":"gleonoliva","id":18090460,"node_id":"MDQ6VXNlcjE4MDkwNDYw","avatar_url":"https://avatars3.githubusercontent.com/u/18090460?v=4","gravatar_id":"","url":"https://api.github.com/users/gleonoliva","html_url":"https://github.com/gleonoliva","followers_url":"https://api.github.com/users/gleonoliva/followers","following_url":"https://api.github.com/users/gleonoliva/following{/other_user}","gists_url":"https://api.github.com/users/gleonoliva/gists{/gist_id}","starred_url":"https://api.github.com/users/gleonoliva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gleonoliva/subscriptions","organizations_url":"https://api.github.com/users/gleonoliva/orgs","repos_url":"https://api.github.com/users/gleonoliva/repos","events_url":"https://api.github.com/users/gleonoliva/events{/privacy}","received_events_url":"https://api.github.com/users/gleonoliva/received_events","type":"User","site_admin":false},"body":"If you add another class containing benchmarks, make sure to add it here following the same pattern.","created_at":"2018-11-24T22:12:57Z","updated_at":"2018-11-24T22:12:57Z","html_url":"https://github.com/azeid/StableMatchingParallel/pull/4#discussion_r236055029","pull_request_url":"https://api.github.com/repos/azeid/StableMatchingParallel/pulls/4","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/azeid/StableMatchingParallel/pulls/comments/236055029"},"html":{"href":"https://github.com/azeid/StableMatchingParallel/pull/4#discussion_r236055029"},"pull_request":{"href":"https://api.github.com/repos/azeid/StableMatchingParallel/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/azeid/StableMatchingParallel/pulls/4","id":233342572,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMzMzQyNTcy","html_url":"https://github.com/azeid/StableMatchingParallel/pull/4","diff_url":"https://github.com/azeid/StableMatchingParallel/pull/4.diff","patch_url":"https://github.com/azeid/StableMatchingParallel/pull/4.patch","issue_url":"https://api.github.com/repos/azeid/StableMatchingParallel/issues/4","number":4,"state":"open","locked":false,"title":"Benchmark framework","user":{"login":"gleonoliva","id":18090460,"node_id":"MDQ6VXNlcjE4MDkwNDYw","avatar_url":"https://avatars3.githubusercontent.com/u/18090460?v=4","gravatar_id":"","url":"https://api.github.com/users/gleonoliva","html_url":"https://github.com/gleonoliva","followers_url":"https://api.github.com/users/gleonoliva/followers","following_url":"https://api.github.com/users/gleonoliva/following{/other_user}","gists_url":"https://api.github.com/users/gleonoliva/gists{/gist_id}","starred_url":"https://api.github.com/users/gleonoliva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gleonoliva/subscriptions","organizations_url":"https://api.github.com/users/gleonoliva/orgs","repos_url":"https://api.github.com/users/gleonoliva/repos","events_url":"https://api.github.com/users/gleonoliva/events{/privacy}","received_events_url":"https://api.github.com/users/gleonoliva/received_events","type":"User","site_admin":false},"body":"In this pull request I'm adding JMH (Java Microbenchmark Harness) as the framework to measure performance improvements over the serial version. \r\n\r\nFirst of all, to make our life easier I'm adding Maven as our dependency management. Assuming you are using IntelliJ Idea. Once you open the project again I guess is going to tell you that now you are using maven and that it needs to sync dependencies. That's because I added JMH as a dependency. This may take a while.\r\n\r\nIf everything goes well your project should look like:\r\n![image](https://user-images.githubusercontent.com/18090460/48973316-5adf8900-f002-11e8-97c8-65d281ef1192.png)\r\n\r\n\r\nAfter that you'll notice that I moved `BipartiteGraph`, `SMP` and `SMPProducerConsumer` to a package called `smp`. This is because we need to import these classes to `BenchmarkRandom10` and possibly more classes that we will add. So, if you are working in another implementation, please move it to the `smp` package.\r\n\r\nRight now, I'm only adding benchmarks for Random10 using the producer consumer and the serial version. This is only to give you an idea of the proposed structure. I'll add the rest of the test cases in another pull request.\r\n\r\nI did run the benchmarks and not surprisingly, the serial version is much faster than `SMPProducerConsumer` as I mentioned in that PR, it has great room for improvement since threads are stepping on each other toes all the time.\r\n\r\n```\r\nBenchmark                           Mode  Cnt  Score    Error  Units\r\nBenchmarkRandom10.producerConsumer  avgt    5  0.187 ±  0.014  ms/op\r\nBenchmarkRandom10.serial            avgt    5  0.015 ±  0.001  ms/op\r\n```\r\n\r\nPlease let me know if you have any issues loading the project after syncing.","created_at":"2018-11-24T22:03:04Z","updated_at":"2018-11-24T22:12:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8f066002884e00956b2756188315b24e98e5800b","assignee":null,"assignees":[],"requested_reviewers":[{"login":"jvalenzuelaochoa","id":43353937,"node_id":"MDQ6VXNlcjQzMzUzOTM3","avatar_url":"https://avatars0.githubusercontent.com/u/43353937?v=4","gravatar_id":"","url":"https://api.github.com/users/jvalenzuelaochoa","html_url":"https://github.com/jvalenzuelaochoa","followers_url":"https://api.github.com/users/jvalenzuelaochoa/followers","following_url":"https://api.github.com/users/jvalenzuelaochoa/following{/other_user}","gists_url":"https://api.github.com/users/jvalenzuelaochoa/gists{/gist_id}","starred_url":"https://api.github.com/users/jvalenzuelaochoa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvalenzuelaochoa/subscriptions","organizations_url":"https://api.github.com/users/jvalenzuelaochoa/orgs","repos_url":"https://api.github.com/users/jvalenzuelaochoa/repos","events_url":"https://api.github.com/users/jvalenzuelaochoa/events{/privacy}","received_events_url":"https://api.github.com/users/jvalenzuelaochoa/received_events","type":"User","site_admin":false},{"login":"azeid","id":44010260,"node_id":"MDQ6VXNlcjQ0MDEwMjYw","avatar_url":"https://avatars2.githubusercontent.com/u/44010260?v=4","gravatar_id":"","url":"https://api.github.com/users/azeid","html_url":"https://github.com/azeid","followers_url":"https://api.github.com/users/azeid/followers","following_url":"https://api.github.com/users/azeid/following{/other_user}","gists_url":"https://api.github.com/users/azeid/gists{/gist_id}","starred_url":"https://api.github.com/users/azeid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azeid/subscriptions","organizations_url":"https://api.github.com/users/azeid/orgs","repos_url":"https://api.github.com/users/azeid/repos","events_url":"https://api.github.com/users/azeid/events{/privacy}","received_events_url":"https://api.github.com/users/azeid/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/azeid/StableMatchingParallel/pulls/4/commits","review_comments_url":"https://api.github.com/repos/azeid/StableMatchingParallel/pulls/4/comments","review_comment_url":"https://api.github.com/repos/azeid/StableMatchingParallel/pulls/comments{/number}","comments_url":"https://api.github.com/repos/azeid/StableMatchingParallel/issues/4/comments","statuses_url":"https://api.github.com/repos/azeid/StableMatchingParallel/statuses/a5d1bb3e98aa60ccb00953e1866f6993a7665e7b","head":{"label":"azeid:benchmark-framework","ref":"benchmark-framework","sha":"a5d1bb3e98aa60ccb00953e1866f6993a7665e7b","user":{"login":"azeid","id":44010260,"node_id":"MDQ6VXNlcjQ0MDEwMjYw","avatar_url":"https://avatars2.githubusercontent.com/u/44010260?v=4","gravatar_id":"","url":"https://api.github.com/users/azeid","html_url":"https://github.com/azeid","followers_url":"https://api.github.com/users/azeid/followers","following_url":"https://api.github.com/users/azeid/following{/other_user}","gists_url":"https://api.github.com/users/azeid/gists{/gist_id}","starred_url":"https://api.github.com/users/azeid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azeid/subscriptions","organizations_url":"https://api.github.com/users/azeid/orgs","repos_url":"https://api.github.com/users/azeid/repos","events_url":"https://api.github.com/users/azeid/events{/privacy}","received_events_url":"https://api.github.com/users/azeid/received_events","type":"User","site_admin":false},"repo":{"id":157133592,"node_id":"MDEwOlJlcG9zaXRvcnkxNTcxMzM1OTI=","name":"StableMatchingParallel","full_name":"azeid/StableMatchingParallel","private":false,"owner":{"login":"azeid","id":44010260,"node_id":"MDQ6VXNlcjQ0MDEwMjYw","avatar_url":"https://avatars2.githubusercontent.com/u/44010260?v=4","gravatar_id":"","url":"https://api.github.com/users/azeid","html_url":"https://github.com/azeid","followers_url":"https://api.github.com/users/azeid/followers","following_url":"https://api.github.com/users/azeid/following{/other_user}","gists_url":"https://api.github.com/users/azeid/gists{/gist_id}","starred_url":"https://api.github.com/users/azeid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azeid/subscriptions","organizations_url":"https://api.github.com/users/azeid/orgs","repos_url":"https://api.github.com/users/azeid/repos","events_url":"https://api.github.com/users/azeid/events{/privacy}","received_events_url":"https://api.github.com/users/azeid/received_events","type":"User","site_admin":false},"html_url":"https://github.com/azeid/StableMatchingParallel","description":"This repository contains stable matching parallel algorithm implementation","fork":false,"url":"https://api.github.com/repos/azeid/StableMatchingParallel","forks_url":"https://api.github.com/repos/azeid/StableMatchingParallel/forks","keys_url":"https://api.github.com/repos/azeid/StableMatchingParallel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/azeid/StableMatchingParallel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/azeid/StableMatchingParallel/teams","hooks_url":"https://api.github.com/repos/azeid/StableMatchingParallel/hooks","issue_events_url":"https://api.github.com/repos/azeid/StableMatchingParallel/issues/events{/number}","events_url":"https://api.github.com/repos/azeid/StableMatchingParallel/events","assignees_url":"https://api.github.com/repos/azeid/StableMatchingParallel/assignees{/user}","branches_url":"https://api.github.com/repos/azeid/StableMatchingParallel/branches{/branch}","tags_url":"https://api.github.com/repos/azeid/StableMatchingParallel/tags","blobs_url":"https://api.github.com/repos/azeid/StableMatchingParallel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/azeid/StableMatchingParallel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/azeid/StableMatchingParallel/git/refs{/sha}","trees_url":"https://api.github.com/repos/azeid/StableMatchingParallel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/azeid/StableMatchingParallel/statuses/{sha}","languages_url":"https://api.github.com/repos/azeid/StableMatchingParallel/languages","stargazers_url":"https://api.github.com/repos/azeid/StableMatchingParallel/stargazers","contributors_url":"https://api.github.com/repos/azeid/StableMatchingParallel/contributors","subscribers_url":"https://api.github.com/repos/azeid/StableMatchingParallel/subscribers","subscription_url":"https://api.github.com/repos/azeid/StableMatchingParallel/subscription","commits_url":"https://api.github.com/repos/azeid/StableMatchingParallel/commits{/sha}","git_commits_url":"https://api.github.com/repos/azeid/StableMatchingParallel/git/commits{/sha}","comments_url":"https://api.github.com/repos/azeid/StableMatchingParallel/comments{/number}","issue_comment_url":"https://api.github.com/repos/azeid/StableMatchingParallel/issues/comments{/number}","contents_url":"https://api.github.com/repos/azeid/StableMatchingParallel/contents/{+path}","compare_url":"https://api.github.com/repos/azeid/StableMatchingParallel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/azeid/StableMatchingParallel/merges","archive_url":"https://api.github.com/repos/azeid/StableMatchingParallel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/azeid/StableMatchingParallel/downloads","issues_url":"https://api.github.com/repos/azeid/StableMatchingParallel/issues{/number}","pulls_url":"https://api.github.com/repos/azeid/StableMatchingParallel/pulls{/number}","milestones_url":"https://api.github.com/repos/azeid/StableMatchingParallel/milestones{/number}","notifications_url":"https://api.github.com/repos/azeid/StableMatchingParallel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/azeid/StableMatchingParallel/labels{/name}","releases_url":"https://api.github.com/repos/azeid/StableMatchingParallel/releases{/id}","deployments_url":"https://api.github.com/repos/azeid/StableMatchingParallel/deployments","created_at":"2018-11-12T00:01:30Z","updated_at":"2018-11-23T03:29:57Z","pushed_at":"2018-11-24T22:03:04Z","git_url":"git://github.com/azeid/StableMatchingParallel.git","ssh_url":"git@github.com:azeid/StableMatchingParallel.git","clone_url":"https://github.com/azeid/StableMatchingParallel.git","svn_url":"https://github.com/azeid/StableMatchingParallel","homepage":null,"size":141,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"azeid:master","ref":"master","sha":"3a767cace650ccb98f31e368d3b7f6d074e978d7","user":{"login":"azeid","id":44010260,"node_id":"MDQ6VXNlcjQ0MDEwMjYw","avatar_url":"https://avatars2.githubusercontent.com/u/44010260?v=4","gravatar_id":"","url":"https://api.github.com/users/azeid","html_url":"https://github.com/azeid","followers_url":"https://api.github.com/users/azeid/followers","following_url":"https://api.github.com/users/azeid/following{/other_user}","gists_url":"https://api.github.com/users/azeid/gists{/gist_id}","starred_url":"https://api.github.com/users/azeid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azeid/subscriptions","organizations_url":"https://api.github.com/users/azeid/orgs","repos_url":"https://api.github.com/users/azeid/repos","events_url":"https://api.github.com/users/azeid/events{/privacy}","received_events_url":"https://api.github.com/users/azeid/received_events","type":"User","site_admin":false},"repo":{"id":157133592,"node_id":"MDEwOlJlcG9zaXRvcnkxNTcxMzM1OTI=","name":"StableMatchingParallel","full_name":"azeid/StableMatchingParallel","private":false,"owner":{"login":"azeid","id":44010260,"node_id":"MDQ6VXNlcjQ0MDEwMjYw","avatar_url":"https://avatars2.githubusercontent.com/u/44010260?v=4","gravatar_id":"","url":"https://api.github.com/users/azeid","html_url":"https://github.com/azeid","followers_url":"https://api.github.com/users/azeid/followers","following_url":"https://api.github.com/users/azeid/following{/other_user}","gists_url":"https://api.github.com/users/azeid/gists{/gist_id}","starred_url":"https://api.github.com/users/azeid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azeid/subscriptions","organizations_url":"https://api.github.com/users/azeid/orgs","repos_url":"https://api.github.com/users/azeid/repos","events_url":"https://api.github.com/users/azeid/events{/privacy}","received_events_url":"https://api.github.com/users/azeid/received_events","type":"User","site_admin":false},"html_url":"https://github.com/azeid/StableMatchingParallel","description":"This repository contains stable matching parallel algorithm implementation","fork":false,"url":"https://api.github.com/repos/azeid/StableMatchingParallel","forks_url":"https://api.github.com/repos/azeid/StableMatchingParallel/forks","keys_url":"https://api.github.com/repos/azeid/StableMatchingParallel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/azeid/StableMatchingParallel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/azeid/StableMatchingParallel/teams","hooks_url":"https://api.github.com/repos/azeid/StableMatchingParallel/hooks","issue_events_url":"https://api.github.com/repos/azeid/StableMatchingParallel/issues/events{/number}","events_url":"https://api.github.com/repos/azeid/StableMatchingParallel/events","assignees_url":"https://api.github.com/repos/azeid/StableMatchingParallel/assignees{/user}","branches_url":"https://api.github.com/repos/azeid/StableMatchingParallel/branches{/branch}","tags_url":"https://api.github.com/repos/azeid/StableMatchingParallel/tags","blobs_url":"https://api.github.com/repos/azeid/StableMatchingParallel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/azeid/StableMatchingParallel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/azeid/StableMatchingParallel/git/refs{/sha}","trees_url":"https://api.github.com/repos/azeid/StableMatchingParallel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/azeid/StableMatchingParallel/statuses/{sha}","languages_url":"https://api.github.com/repos/azeid/StableMatchingParallel/languages","stargazers_url":"https://api.github.com/repos/azeid/StableMatchingParallel/stargazers","contributors_url":"https://api.github.com/repos/azeid/StableMatchingParallel/contributors","subscribers_url":"https://api.github.com/repos/azeid/StableMatchingParallel/subscribers","subscription_url":"https://api.github.com/repos/azeid/StableMatchingParallel/subscription","commits_url":"https://api.github.com/repos/azeid/StableMatchingParallel/commits{/sha}","git_commits_url":"https://api.github.com/repos/azeid/StableMatchingParallel/git/commits{/sha}","comments_url":"https://api.github.com/repos/azeid/StableMatchingParallel/comments{/number}","issue_comment_url":"https://api.github.com/repos/azeid/StableMatchingParallel/issues/comments{/number}","contents_url":"https://api.github.com/repos/azeid/StableMatchingParallel/contents/{+path}","compare_url":"https://api.github.com/repos/azeid/StableMatchingParallel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/azeid/StableMatchingParallel/merges","archive_url":"https://api.github.com/repos/azeid/StableMatchingParallel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/azeid/StableMatchingParallel/downloads","issues_url":"https://api.github.com/repos/azeid/StableMatchingParallel/issues{/number}","pulls_url":"https://api.github.com/repos/azeid/StableMatchingParallel/pulls{/number}","milestones_url":"https://api.github.com/repos/azeid/StableMatchingParallel/milestones{/number}","notifications_url":"https://api.github.com/repos/azeid/StableMatchingParallel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/azeid/StableMatchingParallel/labels{/name}","releases_url":"https://api.github.com/repos/azeid/StableMatchingParallel/releases{/id}","deployments_url":"https://api.github.com/repos/azeid/StableMatchingParallel/deployments","created_at":"2018-11-12T00:01:30Z","updated_at":"2018-11-23T03:29:57Z","pushed_at":"2018-11-24T22:03:04Z","git_url":"git://github.com/azeid/StableMatchingParallel.git","ssh_url":"git@github.com:azeid/StableMatchingParallel.git","clone_url":"https://github.com/azeid/StableMatchingParallel.git","svn_url":"https://github.com/azeid/StableMatchingParallel","homepage":null,"size":141,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/azeid/StableMatchingParallel/pulls/4"},"html":{"href":"https://github.com/azeid/StableMatchingParallel/pull/4"},"issue":{"href":"https://api.github.com/repos/azeid/StableMatchingParallel/issues/4"},"comments":{"href":"https://api.github.com/repos/azeid/StableMatchingParallel/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/azeid/StableMatchingParallel/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/azeid/StableMatchingParallel/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/azeid/StableMatchingParallel/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/azeid/StableMatchingParallel/statuses/a5d1bb3e98aa60ccb00953e1866f6993a7665e7b"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"gleonoliva"}}