{"action":"created","issue":{"url":"https://api.github.com/repos/BurntSushi/cargo-benchcmp/issues/17","repository_url":"https://api.github.com/repos/BurntSushi/cargo-benchcmp","labels_url":"https://api.github.com/repos/BurntSushi/cargo-benchcmp/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/BurntSushi/cargo-benchcmp/issues/17/comments","events_url":"https://api.github.com/repos/BurntSushi/cargo-benchcmp/issues/17/events","html_url":"https://github.com/BurntSushi/cargo-benchcmp/issues/17","id":180527602,"number":17,"title":"Include complete example in documentation","user":{"login":"fitzgen","id":74571,"avatar_url":"https://avatars.githubusercontent.com/u/74571?v=3","gravatar_id":"","url":"https://api.github.com/users/fitzgen","html_url":"https://github.com/fitzgen","followers_url":"https://api.github.com/users/fitzgen/followers","following_url":"https://api.github.com/users/fitzgen/following{/other_user}","gists_url":"https://api.github.com/users/fitzgen/gists{/gist_id}","starred_url":"https://api.github.com/users/fitzgen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fitzgen/subscriptions","organizations_url":"https://api.github.com/users/fitzgen/orgs","repos_url":"https://api.github.com/users/fitzgen/repos","events_url":"https://api.github.com/users/fitzgen/events{/privacy}","received_events_url":"https://api.github.com/users/fitzgen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-02T18:48:34Z","updated_at":"2016-10-02T21:25:46Z","closed_at":null,"body":"It would be great if there were a complete example that shows how to generate the \"old\" and \"new\" files that get passed to `cargo benchcmp old new`.\r\n\r\nI feel like a dummy because none of\r\n\r\n```\r\n$ cargo bench > old\r\n$ cargo bench > new\r\n$ cargo benchcmp old new\r\n```\r\n\r\nnor\r\n\r\n```\r\n$ cargo bench &> old\r\n$ cargo bench &> new\r\n$ cargo benchcmp old new\r\n```\r\n\r\nnor\r\n\r\n```\r\n$ cargo benchcmp ./target/release/bench-12345 ./target/release/bench-67890\r\n```\r\n\r\nare working for me. (Obviously, in a non-toy example, I'd make changes between generating old and new benchmark results).\r\n\r\nThey all spit back:\r\n\r\n```\r\nInvalid arguments.\r\n\r\nUsage:\r\n    cargo benchcmp [options] <old> <new>\r\n    cargo benchcmp [options] <old> <new> <file>\r\n    cargo benchcmp -h | --help\r\n    cargo benchcmp --version\r\n```\r\n\r\nWhat am I doing wrong here? I'd be happy to submit a PR updating the docs with a complete example once I can figure out how to run `cargo benchcmp` properly."},"comment":{"url":"https://api.github.com/repos/BurntSushi/cargo-benchcmp/issues/comments/250997170","html_url":"https://github.com/BurntSushi/cargo-benchcmp/issues/17#issuecomment-250997170","issue_url":"https://api.github.com/repos/BurntSushi/cargo-benchcmp/issues/17","id":250997170,"user":{"login":"fitzgen","id":74571,"avatar_url":"https://avatars.githubusercontent.com/u/74571?v=3","gravatar_id":"","url":"https://api.github.com/users/fitzgen","html_url":"https://github.com/fitzgen","followers_url":"https://api.github.com/users/fitzgen/followers","following_url":"https://api.github.com/users/fitzgen/following{/other_user}","gists_url":"https://api.github.com/users/fitzgen/gists{/gist_id}","starred_url":"https://api.github.com/users/fitzgen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fitzgen/subscriptions","organizations_url":"https://api.github.com/users/fitzgen/orgs","repos_url":"https://api.github.com/users/fitzgen/repos","events_url":"https://api.github.com/users/fitzgen/events{/privacy}","received_events_url":"https://api.github.com/users/fitzgen/received_events","type":"User","site_admin":false},"created_at":"2016-10-02T21:25:46Z","updated_at":"2016-10-02T21:25:46Z","body":"Here is everything I'm doing to reproduce. I'm using a local `cargo benchcmp` that has the prettytable update in #16. Any ideas?\r\n\r\n```\r\nfitzgen@nfitzgerald-22150 :: (master *) :: ~/src/hydra\r\n    $ cargo bench > old\r\n    Finished release [optimized] target(s) in 0.0 secs\r\n     Running target/release/bench-f9747807159bcfdb\r\n     Running target/release/deps/hydra-2f1061b3ba48e5e5\r\n\r\nfitzgen@nfitzgerald-22150 :: (master *) :: ~/src/hydra\r\n    $ cargo bench > new\r\n    Finished release [optimized] target(s) in 0.0 secs\r\n     Running target/release/bench-f9747807159bcfdb\r\n     Running target/release/deps/hydra-2f1061b3ba48e5e5\r\n\r\nfitzgen@nfitzgerald-22150 :: (master *) :: ~/src/hydra\r\n    $ cat old\r\n\r\nrunning 3 tests\r\ntest benches::trace_ring_buffer_in_mutex       ... bench:          51 ns/iter (+/- 16)\r\ntest benches::trace_ring_buffer_large_capacity ... bench:          12 ns/iter (+/- 1)\r\ntest benches::trace_ring_buffer_small_capacity ... bench:          20 ns/iter (+/- 4)\r\n\r\ntest result: ok. 0 passed; 0 failed; 0 ignored; 3 measured\r\n\r\n\r\nrunning 4 tests\r\ntest trace_ring_buffer::tests::trace_entry_has_right_size ... ignored\r\ntest trace_ring_buffer::tests::trace_ring_buffer_no_roll_over ... ignored\r\ntest trace_ring_buffer::tests::trace_ring_buffer_with_roll_over ... ignored\r\ntest trace_ring_buffer::tests::trace_ring_buffer_with_roll_over_and_does_not_divide_evenly ... ignored\r\n\r\ntest result: ok. 0 passed; 0 failed; 4 ignored; 0 measured\r\n\r\n\r\nfitzgen@nfitzgerald-22150 :: (master *) :: ~/src/hydra\r\n    $ cat new\r\n\r\nrunning 3 tests\r\ntest benches::trace_ring_buffer_in_mutex       ... bench:          52 ns/iter (+/- 3)\r\ntest benches::trace_ring_buffer_large_capacity ... bench:          14 ns/iter (+/- 1)\r\ntest benches::trace_ring_buffer_small_capacity ... bench:          19 ns/iter (+/- 3)\r\n\r\ntest result: ok. 0 passed; 0 failed; 0 ignored; 3 measured\r\n\r\n\r\nrunning 4 tests\r\ntest trace_ring_buffer::tests::trace_entry_has_right_size ... ignored\r\ntest trace_ring_buffer::tests::trace_ring_buffer_no_roll_over ... ignored\r\ntest trace_ring_buffer::tests::trace_ring_buffer_with_roll_over ... ignored\r\ntest trace_ring_buffer::tests::trace_ring_buffer_with_roll_over_and_does_not_divide_evenly ... ignored\r\n\r\ntest result: ok. 0 passed; 0 failed; 4 ignored; 0 measured\r\n\r\n\r\nfitzgen@nfitzgerald-22150 :: (master *) :: ~/src/hydra\r\n    $ ../cargo-benchcmp/target/debug/cargo-benchcmp old new\r\nInvalid arguments.\r\n\r\nUsage:\r\n    cargo benchcmp [options] <old> <new>\r\n    cargo benchcmp [options] <old> <new> <file>\r\n    cargo benchcmp -h | --help\r\n    cargo benchcmp --version\r\n```"}}
{"actor":{"display_login":"fitzgen"}}