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

Method testPerformance_second

tests/nsl/diff/NSLDiffTest.cpp:151–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151void NSLDiffTest::testPerformance_second() {
152 const int NN = 1e6;
153 QScopedArrayPointer<double> xdata(new double[NN]);
154 QScopedArrayPointer<double> ydata(new double[NN]);
155
156 for (int i = 0; i < NN; i++)
157 xdata[i] = ydata[i] = (double)i;
158
159 QBENCHMARK {
160 int status = nsl_diff_second_deriv(xdata.data(), ydata.data(), NN, 2);
161 QCOMPARE(status, 0);
162 }
163}
164
165void NSLDiffTest::testPerformance_third() {
166 const int NN = 1e6;

Callers

nothing calls this directly

Calls 2

nsl_diff_second_derivFunction · 0.85
dataMethod · 0.45

Tested by

no test coverage detected