Skip to content

Fixes for shootout benchmarks #7193

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

Closed
wants to merge 7 commits into from
Closed

Fixes for shootout benchmarks #7193

wants to merge 7 commits into from

Conversation

Thiez
Copy link
Contributor

@Thiez Thiez commented Jun 16, 2013

This PR fixes a few problems with the benchmark, mentioned in #2913. Since I do not have a 4GB RAM machine (I run rust on a puny 2GB RAM VM) I can't test binarytrees with N=20. If it works we can close #2913.

Fixes: 1) binarytrees prints "long lived trees of depth" instead of "long lived tree of depth"
Fixes: 2) chameneosredux -- the whitespace printed by show_number should be the same as printed by show_color
Already fixed: 3) spectralnorm prints an extra \n
Fixes: 4) threadring prints an extra \n
Fixes: 5) fasta -- strangely, output stops half-way through line 169 -- with another 8166 lines still to do.
Could not test: 6) the latest binarytrees fails with input N=20 on a 4GB machine.

r?

@Thiez
Copy link
Contributor Author

Thiez commented Jun 16, 2013

I should probably mention this PR changes the API of Arena, it now takes &self instead of &mut self. Bad, but I couldn't think of a cleaner way to fix it.

@Thiez
Copy link
Contributor Author

Thiez commented Jun 16, 2013

@cmr has tried the binarytrees benchmark on a machine with sufficient RAM and the correct output was produced.

@brson
Copy link
Contributor

brson commented Jun 16, 2013

Thanks a lot for this.

I don't think the problem with threadring is fixed (#5985).

@Thiez
Copy link
Contributor Author

Thiez commented Jun 17, 2013

I see you are correct, I have looked at that issue (#5985) and noticed a reference to your (closed) pull request (#6581) and incorrectly assumed it was closed because it had landed, while in reality it was closed because the incoming branch was deleted.

bors added a commit that referenced this pull request Jun 24, 2013
This PR fixes a few problems with the benchmark, mentioned in #2913. Since I do not have a 4GB RAM machine (I run rust on a puny 2GB RAM VM) I can't test binarytrees with N=20. If it works we can close #2913.

Fixes: 1) binarytrees prints "long lived trees of depth" instead of "long lived tree of depth"
Fixes: 2) chameneosredux -- the whitespace printed by show_number should be the same as printed by show_color
Already fixed: 3) spectralnorm prints an extra 

Fixes: 4) threadring prints an extra 

Fixes: 5) fasta -- strangely, output stops half-way through line 169 -- with another 8166 lines still to do.
Could not test: 6) the latest binarytrees fails with input N=20 on a 4GB machine.

r?
@bors bors closed this Jun 24, 2013
@Thiez Thiez mentioned this pull request Jun 24, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request May 20, 2021
…constructor-pedantic, r=camsteffen

Move `inconsistent_struct_constructor` to pedantic

The whole point of named fields is that we don't have to worry about
order. The names, not the position, communicate the information, so
worrying about consistency for consistency's sake is pedantic to a *T*.

Cf. rust-lang#7192.

changelog: [`inconsistent_struct_constructor`] is moved to pedantic.

wchargin-branch: inconsistent-struct-constructor-pedantic
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.

Fix shootout benchmarks
4 participants