-
Notifications
You must be signed in to change notification settings - Fork 69
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
Conversation
benchmarks/benchmarks.vcxproj
Outdated
<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" /> |
There was a problem hiding this comment.
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
.
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
It turns out that we mostly spend time in
lower_bound
: