Skip to content

Conversation

@trisyoungs
Copy link
Member

@trisyoungs trisyoungs commented Jun 24, 2024

This PR addresses #1927 and overhauls our benchmark suite to be more consistent with the rest of the code and easier to maintain in the long run.

Briefly:

  • All benchmark-related classes, enums and definitions now exist under the new Benchmark namespace (c.f. the UnitTest namespace)
  • The main Problem class has been re-engineered a little to simplify and tidy, and the loading of input files and handling of different system sizes is now cleaner.
  • A benchmark for the AngleModule has been added in anticipation of perf: Combinable histograms for angle module parallel execution #1937

Closes #1927.

Copy link
Contributor

@RobBuchananCompPhys RobBuchananCompPhys left a comment

Choose a reason for hiding this comment

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

Very nice!

Comment on lines +40 to +44
static std::map<SpeciesPopulation, int> populationSizes = {{SpeciesPopulation::Single, 1},
{SpeciesPopulation::Small, 1000},
{SpeciesPopulation::Medium, 5000},
{SpeciesPopulation::Large, 10000}};
Messenger::setQuiet(true);
Copy link
Contributor

Choose a reason for hiding this comment

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

This is so much more convenient than the old setup!

@trisyoungs trisyoungs merged commit 064af34 into develop Jun 26, 2024
@trisyoungs trisyoungs deleted the 1927-tidy-benchmarks branch June 26, 2024 11:26
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.

Tidy Benchmarks

4 participants