Skip to content

update bench code #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 18, 2019
Merged

update bench code #7

merged 2 commits into from
Sep 18, 2019

Conversation

yoshuawuyts
Copy link
Collaborator

Closes #2. Also allows running setup code again inside the benchmark. Thanks!

Signed-off-by: Yoshua Wuyts <[email protected]>
Signed-off-by: Yoshua Wuyts <[email protected]>
@yoshuawuyts
Copy link
Collaborator Author

Tests pass. Going to go ahead and merge this.

@yoshuawuyts yoshuawuyts merged commit 9e4ee5b into master Sep 18, 2019
@yoshuawuyts yoshuawuyts deleted the improve-bench branch September 18, 2019 00:19
@@ -143,22 +143,20 @@ pub fn test(_attr: TokenStream, item: TokenStream) -> TokenStream {
///
/// ```ignore
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test was ignored

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah dang. Yep definitely missed that.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, doc tests run with cargo build, so it seems that we can't actually test #[test] and #[bench] via doc tests...

yoshuawuyts added a commit that referenced this pull request Nov 2, 2019
Signed-off-by: Yoshua Wuyts <[email protected]>
@yoshuawuyts yoshuawuyts mentioned this pull request Nov 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bench code
2 participants