{"action":"created","issue":{"url":"https://api.github.com/repos/xapi-project/xenvm/issues/157","labels_url":"https://api.github.com/repos/xapi-project/xenvm/issues/157/labels{/name}","comments_url":"https://api.github.com/repos/xapi-project/xenvm/issues/157/comments","events_url":"https://api.github.com/repos/xapi-project/xenvm/issues/157/events","html_url":"https://github.com/xapi-project/xenvm/pull/157","id":108637558,"number":157,"title":"test: Add benchmarking to the test suite","user":{"login":"simonjbeaumont","id":1125539,"avatar_url":"https://avatars.githubusercontent.com/u/1125539?v=3","gravatar_id":"","url":"https://api.github.com/users/simonjbeaumont","html_url":"https://github.com/simonjbeaumont","followers_url":"https://api.github.com/users/simonjbeaumont/followers","following_url":"https://api.github.com/users/simonjbeaumont/following{/other_user}","gists_url":"https://api.github.com/users/simonjbeaumont/gists{/gist_id}","starred_url":"https://api.github.com/users/simonjbeaumont/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonjbeaumont/subscriptions","organizations_url":"https://api.github.com/users/simonjbeaumont/orgs","repos_url":"https://api.github.com/users/simonjbeaumont/repos","events_url":"https://api.github.com/users/simonjbeaumont/events{/privacy}","received_events_url":"https://api.github.com/users/simonjbeaumont/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-28T11:15:46Z","updated_at":"2015-09-28T12:26:00Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/xapi-project/xenvm/pulls/157","html_url":"https://github.com/xapi-project/xenvm/pull/157","diff_url":"https://github.com/xapi-project/xenvm/pull/157.diff","patch_url":"https://github.com/xapi-project/xenvm/pull/157.patch"},"body":"From these I was able to benchmark the LV create, destroy and resize operations and plot them:\r\n\r\n![creating-10000-lvs gp](https://cloud.githubusercontent.com/assets/1125539/10134146/9e30e730-65db-11e5-895b-bd9f06dcc138.png)\r\n![remove-10000-lvs gp](https://cloud.githubusercontent.com/assets/1125539/10134147/9e54452c-65db-11e5-8027-2ad38a23d390.png)\r\n![resizing-10000-lvs-to-60g gp](https://cloud.githubusercontent.com/assets/1125539/10134148/9e55b380-65db-11e5-86c8-eed0ca310969.png)\r\n"},"comment":{"url":"https://api.github.com/repos/xapi-project/xenvm/issues/comments/143728434","html_url":"https://github.com/xapi-project/xenvm/pull/157#issuecomment-143728434","issue_url":"https://api.github.com/repos/xapi-project/xenvm/issues/157","id":143728434,"user":{"login":"simonjbeaumont","id":1125539,"avatar_url":"https://avatars.githubusercontent.com/u/1125539?v=3","gravatar_id":"","url":"https://api.github.com/users/simonjbeaumont","html_url":"https://github.com/simonjbeaumont","followers_url":"https://api.github.com/users/simonjbeaumont/followers","following_url":"https://api.github.com/users/simonjbeaumont/following{/other_user}","gists_url":"https://api.github.com/users/simonjbeaumont/gists{/gist_id}","starred_url":"https://api.github.com/users/simonjbeaumont/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonjbeaumont/subscriptions","organizations_url":"https://api.github.com/users/simonjbeaumont/orgs","repos_url":"https://api.github.com/users/simonjbeaumont/repos","events_url":"https://api.github.com/users/simonjbeaumont/events{/privacy}","received_events_url":"https://api.github.com/users/simonjbeaumont/received_events","type":"User","site_admin":false},"created_at":"2015-09-28T12:26:00Z","updated_at":"2015-09-28T12:26:00Z","body":"> What would be really cool would be to get travis to run a benchmark, generate a graph and have it be attached to the github pull request :)\r\n\r\nThe second bit would be a bit of a fiddle but not impossible. We can stick an OAuth token in a Travis secret and find the REST API for commenting on pull requests and uploading attachments.\r\n\r\nIt would make the CI _significantly_ slower:\r\n\r\n```bash\r\n[root@4d7d6c56ab9e xenvm]# time ./test.native\r\n...\r\nRan: 10 tests in: 0.88 seconds.\r\nOK: Cases: 10 Skip: 1\r\n...\r\nreal    0m14.050s\r\nuser    0m1.976s\r\nsys     0m0.462s\r\n```\r\n```bash\r\n[root@4d7d6c56ab9e xenvm]# time TEST_BENCHMARK=yes ./test.native\r\n...\r\nRan: 10 tests in: 202.61 seconds.\r\nOK\r\n...\r\nreal    4m26.342s\r\nuser    0m7.945s\r\nsys     0m2.553s\r\n```"}}