21 #include <QElapsedTimer> 33 m_uniform_distribution_f(-1.0, 1.0),
34 m_uniform_distribution_s16(-2048, 2047)
36 qDebug() <<
"MainBench::MainBench: start";
38 qDebug() <<
"MainBench::MainBench: end";
46 qDebug() <<
"MainBench::run: parameters:" 79 qDebug() <<
"MainBench::testDecimateII: create test data";
86 qDebug() <<
"MainBench::testDecimateII: run test";
95 nsecs += timer.nsecsElapsed();
100 nsecs += timer.nsecsElapsed();
106 nsecs += timer.nsecsElapsed();
113 qDebug() <<
"MainBench::testDecimateII: cleanup test data";
122 qDebug() <<
"MainBench::testDecimateIF: create test data";
129 qDebug() <<
"MainBench::testDecimateIF: run test";
135 nsecs += timer.nsecsElapsed();
140 qDebug() <<
"MainBench::testDecimateIF: cleanup test data";
149 qDebug() <<
"MainBench::testDecimateFI: create test data";
156 qDebug() <<
"MainBench::testDecimateFI: run test";
162 nsecs += timer.nsecsElapsed();
167 qDebug() <<
"MainBench::testDecimateFI: cleanup test data";
176 qDebug() <<
"MainBench::testDecimateFF: create test data";
183 qDebug() <<
"MainBench::testDecimateFF: run test";
189 nsecs += timer.nsecsElapsed();
194 qDebug() <<
"MainBench::testDecimateFF: cleanup test data";
200 qDebug() <<
"MainBench::testAMBE";
202 std::vector<QString> ambeDevices;
203 ambeEngine.
scan(ambeDevices);
205 for (std::vector<QString>::const_iterator it = ambeDevices.begin(); it != ambeDevices.end(); ++it) {
206 qDebug(
"MainBench::testAMBE: detected AMBE device %s", qPrintable(*it));
405 QDebug info = qInfo();
407 info << tr(
"%1: ran test in %L2 ns - sample rate: %3 kS/s").arg(prefix).arg(nsecs).arg(ratekSs);
Decimators< qint32, qint16, SDR_RX_SAMP_SZ, 12 > m_decimatorsII
SampleVector m_convertBuffer
void decimate2_inf(SampleVector::iterator *it, const T *buf, qint32 len)
void decimate64_sup(SampleVector::iterator *it, const T *buf, qint32 len)
uint32_t getRepetition() const
void decimate32_cen(SampleVector::iterator *it, const float *buf, qint32 nbIAndQ)
void decimate4_cen(FSampleVector::iterator *it, const float *buf, qint32 nbIAndQ)
void decimate64_cen(SampleVector::iterator *it, const T *buf, qint32 len)
void decimate2_sup(SampleVector::iterator *it, const T *buf, qint32 len)
void decimate2_cen(SampleVector::iterator *it, const T *buf, qint32 len)
void decimate64_cen(FSampleVector::iterator *it, const T *buf, qint32 nbIAndQ)
DecimatorsFF m_decimatorsFF
void decimate8_sup(SampleVector::iterator *it, const T *buf, qint32 len)
void decimate64_cen(FSampleVector::iterator *it, const float *buf, qint32 nbIAndQ)
void decimateSupII(const qint16 *buf, int len)
void decimate64_inf(SampleVector::iterator *it, const T *buf, qint32 len)
void scan(std::vector< QString > &ambeDevices)
void decimate32_inf(SampleVector::iterator *it, const T *buf, qint32 len)
void decimate32_sup(SampleVector::iterator *it, const T *buf, qint32 len)
DecimatorsFI m_decimatorsFI
void decimate32_cen(FSampleVector::iterator *it, const float *buf, qint32 nbIAndQ)
void decimateFF(const float *buf, int len)
void decimate4_sup(SampleVector::iterator *it, const T *buf, qint32 len)
void decimateFI(const float *buf, int len)
void testDecimateII(ParserBench::TestType testType=ParserBench::TestDecimatorsII)
void decimate8_cen(SampleVector::iterator *it, const T *buf, qint32 len)
void decimate16_cen(SampleVector::iterator *it, const float *buf, qint32 nbIAndQ)
void decimate2_cen(FSampleVector::iterator *it, const float *buf, qint32 nbIAndQ)
void decimate4_cen(FSampleVector::iterator *it, const T *buf, qint32 nbIAndQ)
void decimate1(FSampleVector::iterator *it, const T *buf, qint32 nbIAndQ)
uint32_t getLog2Factor() const
void decimate8_inf(SampleVector::iterator *it, const T *buf, qint32 len)
void decimate16_sup(SampleVector::iterator *it, const T *buf, qint32 len)
void decimate2_cen(SampleVector::iterator *it, const float *buf, qint32 nbIAndQ)
std::uniform_int_distribution< qint16 > m_uniform_distribution_s16
const QString & getTestStr() const
FSampleVector m_convertBufferF
MainBench(qtwebapp::LoggerWithFile *logger, const ParserBench &parser, QObject *parent=0)
void decimate4_cen(SampleVector::iterator *it, const float *buf, qint32 nbIAndQ)
void printResults(const QString &prefix, qint64 nsecs)
void decimate4_cen(SampleVector::iterator *it, const T *buf, qint32 len)
void decimateII(const qint16 *buf, int len)
void decimate8_cen(FSampleVector::iterator *it, const T *buf, qint32 nbIAndQ)
void decimate16_cen(FSampleVector::iterator *it, const float *buf, qint32 nbIAndQ)
void decimateInfII(const qint16 *buf, int len)
uint32_t getNbSamples() const
void decimate4_inf(SampleVector::iterator *it, const T *buf, qint32 len)
void decimateIF(const qint16 *buf, int len)
void decimate8_cen(SampleVector::iterator *it, const float *buf, qint32 nbIAndQ)
std::uniform_real_distribution< float > m_uniform_distribution_f
const ParserBench & m_parser
void decimate8_cen(FSampleVector::iterator *it, const float *buf, qint32 nbIAndQ)
void decimate16_cen(FSampleVector::iterator *it, const T *buf, qint32 nbIAndQ)
TestType getTestType() const
void decimate16_inf(SampleVector::iterator *it, const T *buf, qint32 len)
DecimatorsIF< qint16, 12 > m_decimatorsIF
static MainBench * m_instance
void decimate64_cen(SampleVector::iterator *it, const float *buf, qint32 nbIAndQ)
void decimate2_cen(FSampleVector::iterator *it, const T *buf, qint32 nbIAndQ)
void decimate32_cen(FSampleVector::iterator *it, const T *buf, qint32 nbIAndQ)
void decimate1(FSampleVector::iterator *it, const float *buf, qint32 nbIAndQ)
void decimate16_cen(SampleVector::iterator *it, const T *buf, qint32 len)
void decimate32_cen(SampleVector::iterator *it, const T *buf, qint32 len)
void decimate1(SampleVector::iterator *it, const T *buf, qint32 len)
void decimate1(SampleVector::iterator *it, const float *buf, qint32 nbIAndQ)