Skip to content

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
///
/// # Examples
///
/// ```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

3 participants