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

A benchmark for PlotMethod2 #1785

Merged
merged 8 commits into from
Apr 1, 2018

Conversation

eggrobin
Copy link
Member

@eggrobin eggrobin commented Apr 1, 2018

It turns out that we mostly spend time in lower_bound:

profile

<ClCompile Include="dynamic_frame.cpp" />
<ClCompile Include="embedded_explicit_runge_kutta_nyström_integrator.cpp" />
<ClCompile Include="ephemeris.cpp" />
<ClCompile Include="hexadecimal.cpp" />
<ClCompile Include="main.cpp" />
<ClCompile Include="newhall.cpp" />
<ClCompile Include="perspective.cpp" />
<ClCompile Include="planetarium_benchmarks.cpp" />
Copy link
Member

Choose a reason for hiding this comment

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

In general we don't call benchmarks _benchmarks.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, but if there are two translation units with the same name in the same project MSVC complains that the object files have the same name.

*goes_8_instance));
}

DiscreteTrajectory<Barycentric> const& GOES8Trajectory() const {
Copy link
Member

Choose a reason for hiding this comment

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

Should this function use snake_case?

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

RP2Lines<Length, Camera> lines;
int total_lines = 0;
int iterations = 0;
constexpr Instant now = "2000-01-21T04:41:30,5"_TT;
Copy link
Member

Choose a reason for hiding this comment

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

Where does this date come from?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's an eclipse that happened to be in January of 2000.

RunBenchmark(state, PolarPerspective(near));
}

BENCHMARK(BM_PlanetariumPlotMethod2NearPolarPerspective);
Copy link
Member

Choose a reason for hiding this comment

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

Move all the macros together at the end.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

@pleroy pleroy added the LGTM label Apr 1, 2018
@pleroy pleroy merged commit 1235681 into mockingbirdnest:master Apr 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants