Skip to content

Commit

Permalink
Update Benchmarks.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryuhoo committed May 25, 2024
1 parent 419fca8 commit 142db1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions benchmarks/Benchmarks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ TEST_CASE ("Boot performance")
(Catch::Benchmark::Chronometer meter)
{
auto gui = juce::ScopedJuceInitialiser_GUI {};
std::vector<Catch::Benchmark::storage_for<PluginProcessor>> storage (size_t (meter.runs()));
std::vector<Catch::Benchmark::storage_for<FireAudioProcessor>> storage (size_t (meter.runs()));
meter.measure ([&] (int i) { storage[(size_t) i].construct(); });
};

BENCHMARK_ADVANCED ("Processor destructor")
(Catch::Benchmark::Chronometer meter)
{
auto gui = juce::ScopedJuceInitialiser_GUI {};
std::vector<Catch::Benchmark::destructable_object<PluginProcessor>> storage (size_t (meter.runs()));
std::vector<Catch::Benchmark::destructable_object<FireAudioProcessor>> storage (size_t (meter.runs()));
for (auto& s : storage)
s.construct();
meter.measure ([&] (int i) { storage[(size_t) i].destruct(); });
Expand All @@ -27,7 +27,7 @@ TEST_CASE ("Boot performance")
{
auto gui = juce::ScopedJuceInitialiser_GUI {};

PluginProcessor plugin;
FireAudioProcessor plugin;

// due to complex construction logic of the editor, let's measure open/close together
meter.measure ([&] (int /* i */) {
Expand Down

0 comments on commit 142db1c

Please sign in to comment.