Skip to content

Commit

Permalink
PerfTests: Excise 'lightweight' benchmarker
Browse files Browse the repository at this point in the history
We are now using the full JBenchmarker instead.
  • Loading branch information
nathanwbrei committed Nov 9, 2023
1 parent 4080aa5 commit 888e247
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/programs/perf_tests/PerfTests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,6 @@
#include <thread>


void benchmark(JApplication& app) {

app.Run(false);
auto logger = app.GetService<JLoggingService>()->get_logger("PerfTests");
for (int nthreads=1; nthreads<=8; nthreads*=2) {

app.Scale(nthreads);
LOG_INFO(logger) << "Scaling to " << nthreads << " threads... (5 second warmup)" << LOG_END;
std::this_thread::sleep_for(std::chrono::seconds(5));

app.GetInstantaneousRate(); // Reset the clock
for (int i=0; i<15; ++i) {
std::this_thread::sleep_for(std::chrono::seconds(1));
LOG_INFO(logger) << "Measured instantaneous rate: " << app.GetInstantaneousRate() << " Hz" << LOG_END;
}
}
app.Stop(true);
}


int main() {

Expand Down

0 comments on commit 888e247

Please sign in to comment.