Skip to content

Commit d14c277

Browse files
damienbarkerjenkins
authored andcommitted
QPR-12100 speed up qle tests
1 parent 7da50d9 commit d14c277

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

QuantExt/test/crossassetmodel.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2299,7 +2299,7 @@ BOOST_DATA_TEST_CASE(testIrFxInfCrComMartingaleProperty,
22992299
BOOST_TEST_MESSAGE("get Euler state process");
23002300
boost::shared_ptr<StochasticProcess> process2 = d.modelEuler->stateProcess();
23012301

2302-
Size n = 50000; // number of paths
2302+
Size n = 10000; // number of paths
23032303
Size seed = 18; // rng seed
23042304
Time T = 2.0; // maturity of payoff
23052305
Time T2 = 20.0; // zerobond maturity
@@ -2565,7 +2565,7 @@ BOOST_DATA_TEST_CASE(testIrFxInfCrComMoments,
25652565

25662566
Real T = 2.0; // horizon at which we compare the moments
25672567
Size steps = static_cast<Size>(T * 10); // number of simulation steps (Euler and exact)
2568-
Size paths = 30000; // number of paths
2568+
Size paths = 20000; // number of paths
25692569

25702570
Array e_an = p_exact->expectation(0.0, p_exact->initialValues(), T);
25712571
Matrix v_an = p_exact->covariance(0.0, p_exact->initialValues(), T);
@@ -3872,7 +3872,7 @@ BOOST_AUTO_TEST_CASE(testCorrelationRecovery) {
38723872

38733873
// for ir-fx this fully specifies the correlation matrix
38743874
// for new asset classes add other possible combinations as well
3875-
Size currencies[] = { 1, 2, 3, 4, 5, 10, 20, 100 };
3875+
Size currencies[] = { 1, 2, 3, 4, 5, 10, 20 };
38763876

38773877
MersenneTwisterUniformRng mt(42);
38783878

@@ -4181,7 +4181,7 @@ BOOST_AUTO_TEST_CASE(testIrFxInfCrEqCorrelationRecovery) {
41814181

41824182
// for ir-fx this fully specifies the correlation matrix
41834183
// for new asset classes add other possible combinations as well
4184-
Size currencies[] = { 1, 2, 3, 4, 5, 10, 20 };
4184+
Size currencies[] = { 1, 2, 3, 4, 5 };
41854185
Size cpiindexes[] = { 0, 1, 10 };
41864186
Size creditnames[] = { 0, 1, 5 };
41874187
Size eqs[] = { 0, 1, 5 };

0 commit comments

Comments
 (0)