Skip to content

Commit

Permalink
Correct llvm-algebra-test.
Browse files Browse the repository at this point in the history
  • Loading branch information
sletz committed Oct 2, 2022
1 parent 5d7af4b commit b3f7e82
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/llvm-tests/llvm-algebra-test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,15 @@ static void benchDSP(const string& title, const string& code, dsp* combined)

measure_dsp* mes1 = new measure_dsp(dsp, 512, 5.); // Buffer_size and duration in sec of measure
mes1->measure();
double res1 = mes1->getStats();
cout << res1 << " " << "(DSP CPU % : " << (mes1->getCPULoad() * 100) << ")" << endl;
pair<double, double> res1 = mes1->getStats();
cout << res1.first << " " << "(DSP CPU % : " << (mes1->getCPULoad() * 100) << ")" << endl;

measure_dsp* mes2 = new measure_dsp(combined, 512, 5.); // Buffer_size and duration in sec of measure
mes2->measure();
double res2 = mes2->getStats();
cout << res2 << " " << "(DSP CPU % : " << (mes2->getCPULoad() * 100) << ")" << endl;
pair<double, double> res2 = mes2->getStats();
cout << res2.first << " " << "(DSP CPU % : " << (mes2->getCPULoad() * 100) << ")" << endl;

cout << "Ratio = " << (res1/res2) << endl;
cout << "Ratio = " << (res1.first/res2.first) << endl;

delete mes1;
delete mes2;
Expand Down

0 comments on commit b3f7e82

Please sign in to comment.