Skip to content
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

shootout-mandelbrot: Either 10-20% or 80-100% improvement. #14203

Closed
wants to merge 2 commits into from

Conversation

Ryman
Copy link
Contributor

@Ryman Ryman commented May 14, 2014

Not sure if we're accepting SIMD usage in the main tree, so the first commit is just unrolling the loop a bit to calculate two bits at a time, this gives a 2second speedup from 12s => 10s on my i5.

The second commit using SIMD which brings it down to about 6s. It also precomputes initial values (which doesn't help much, but it is noticeable).

If we're allowing SIMD in the benchmarks, I can squash to the 2nd commit, otherwise I can kill the 2nd commit and leave the first.

@brson
Copy link
Contributor

brson commented May 14, 2014

More improvements to our shootout benchmarks are welcome.

@emberian
Copy link
Member

Sweet, this is awesome!

@alexcrichton
Copy link
Member

During the rollup, an assertion failed during the mandelbrot benchmark, I didn't check to make sure that this was the cause of the commit, but I suspect that it may be.

@Ryman
Copy link
Contributor Author

Ryman commented May 15, 2014

@alexcrichton Forgot to account for N=1000 when upping the worker count. Fixed.

lnicola pushed a commit to lnicola/rust that referenced this pull request Mar 13, 2023
…=lnicola

fix: Add check for extra path segments after a fully qualified one

`type A = <()>;` is parsed just fine by rust-analyzer, but then rejected by rustc:

```
error: expected `::`, found `;`
 --> x.rs:7:14
  |
7 | type A = <()>;
  |              ^ expected `::`

```

Fixed by adding a lookahead for the `::` token after fully-qualified path segments.
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.

4 participants