MCPcopy Create free account
hub / github.com/KDE/labplot / testPerformance_third

Method testPerformance_third

tests/nsl/diff/NSLDiffTest.cpp:165–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165void NSLDiffTest::testPerformance_third() {
166 const int NN = 1e6;
167 QScopedArrayPointer<double> xdata(new double[NN]);
168 QScopedArrayPointer<double> ydata(new double[NN]);
169
170 for (int i = 0; i < NN; i++)
171 xdata[i] = ydata[i] = (double)i;
172
173 QBENCHMARK {
174 int status = nsl_diff_third_deriv(xdata.data(), ydata.data(), NN, 2);
175 QCOMPARE(status, 0);
176 }
177}
178
179QTEST_MAIN(NSLDiffTest)

Callers

nothing calls this directly

Calls 2

nsl_diff_third_derivFunction · 0.85
dataMethod · 0.45

Tested by

no test coverage detected