Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
test
sensitivityperformanceplus.hpp
Go to the documentation of this file.
1
/*
2
Copyright (C) 2017 Quaternion Risk Management Ltd
3
All rights reserved.
4
5
This file is part of ORE, a free-software/open-source library
6
for transparent pricing and risk analysis - http://opensourcerisk.org
7
8
ORE is free software: you can redistribute it and/or modify it
9
under the terms of the Modified BSD License. You should have received a
10
copy of the license along with this program.
11
The license is also available online at <http://opensourcerisk.org>
12
13
This program is distributed on the basis that it will form a useful
14
contribution to risk analytics and model standardisation, but WITHOUT
15
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16
FITNESS FOR A PARTICULAR PURPOSE. See the license for more details.
17
*/
18
19
/*! \file test/sensitivityperformanceplus.hpp
20
\brief Extended sensitivity preformance test
21
\ingroup tests
22
*/
23
24
#pragma once
25
26
#include <boost/test/unit_test.hpp>
27
28
namespace
testsuite
{
29
30
//! Sensitivity Performance tests
31
/*!
32
This is a performance test for the zero rate sensitivities generation
33
in ORE+. It is almost identical to the test in ORE, but it instead makes
34
use of oreplus::sensitivity::SensitivityAnalysis (which uses a DeltaScenarioFactory)
35
\ingroup tests
36
*/
37
class
SensitivityPerformancePlusTest
{
38
public
:
39
//! Test performance of sensitivities run ("None" observation mode)
40
static
void
testSensiPerformanceNoneObs
();
41
//! Test performance of sensitivities run ("Disable" observation mode)
42
static
void
testSensiPerformanceDisableObs
();
43
//! Test performance of sensitivities run ("Defer" observation mode)
44
static
void
testSensiPerformanceDeferObs
();
45
//! Test performance of sensitivities run ("Unregister" observation mode)
46
static
void
testSensiPerformanceUnregisterObs
();
47
48
//! Test performance of sensitivities run (including cross-gammas) ("None" observation mode)
49
static
void
testSensiPerformanceCrossGammaNoneObs
();
50
//! Test performance of sensitivities run (including cross-gammas) ("Disable" observation mode)
51
static
void
testSensiPerformanceCrossGammaDisableObs
();
52
//! Test performance of sensitivities run (including cross-gammas) ("Defer" observation mode)
53
static
void
testSensiPerformanceCrossGammaDeferObs
();
54
//! Test performance of sensitivities run (including cross-gammas) ("Unregister" observation mode)
55
static
void
testSensiPerformanceCrossGammaUnregisterObs
();
56
57
//! Test performance of sensitivities run with lots of buckets ("None" observation mode)
58
static
void
testSensiPerformanceBigScenarioNoneObs
();
59
//! Test performance of sensitivities run with lots of buckets ("Disable" observation mode)
60
static
void
testSensiPerformanceBigScenarioDisableObs
();
61
//! Test performance of sensitivities run with lots of buckets ("Defer" observation mode)
62
static
void
testSensiPerformanceBigScenarioDeferObs
();
63
//! Test performance of sensitivities run with lots of buckets ("Unregister" observation mode)
64
static
void
testSensiPerformanceBigScenarioUnregisterObs
();
65
66
//! Test performance of sensitivities run for a large portfolio ("None" observation mode)
67
static
void
testSensiPerformanceBigPortfolioNoneObs
();
68
//! Test performance of sensitivities run for a large portfolio ("Disable" observation mode)
69
static
void
testSensiPerformanceBigPortfolioDisableObs
();
70
//! Test performance of sensitivities run for a large portfolio ("Defer" observation mode)
71
static
void
testSensiPerformanceBigPortfolioDeferObs
();
72
//! Test performance of sensitivities run for a large portfolio ("Unregister" observation mode)
73
static
void
testSensiPerformanceBigPortfolioUnregisterObs
();
74
75
//! Test performance of sensitivities run for a large portfolio, with lots of buckets ("None" observation mode)
76
static
void
testSensiPerformanceBigPortfolioBigScenarioNoneObs
();
77
//! Test performance of sensitivities run for a large portfolio, with lots of buckets ("Disable" observation mode)
78
static
void
testSensiPerformanceBigPortfolioBigScenarioDisableObs
();
79
//! Test performance of sensitivities run for a large portfolio, with lots of buckets ("Defer" observation mode)
80
static
void
testSensiPerformanceBigPortfolioBigScenarioDeferObs
();
81
//! Test performance of sensitivities run for a large portfolio, with lots of buckets ("Unregister" observation
82
// mode)
83
static
void
testSensiPerformanceBigPortfolioBigScenarioUnregisterObs
();
84
85
//! Test performance of sensitivities run (including cross-gammas) for a large portfolio ("None" observation mode)
86
static
void
testSensiPerformanceBigPortfolioCrossGammaNoneObs
();
87
//! Test performance of sensitivities run (including cross-gammas) for a large portfolio ("Disable" observation
88
// mode)
89
static
void
testSensiPerformanceBigPortfolioCrossGammaDisableObs
();
90
//! Test performance of sensitivities run (including cross-gammas) for a large portfolio ("Defer" observation mode)
91
static
void
testSensiPerformanceBigPortfolioCrossGammaDeferObs
();
92
//! Test performance of sensitivities run (including cross-gammas) for a large portfolio ("Unregister" observation
93
// mode)
94
static
void
testSensiPerformanceBigPortfolioCrossGammaUnregisterObs
();
95
96
//! Test performance of sensitivities run (including cross-gammas) for a single-trade portfolio, with lots of
97
// buckets ("None" observation mode)
98
static
void
testSensiPerformanceBigScenarioCrossGammaNoneObs
();
99
//! Test performance of sensitivities run (including cross-gammas) for a single-trade portfolio, with lots of
100
// buckets ("Disable" observation mode)
101
static
void
testSensiPerformanceBigScenarioCrossGammaDisableObs
();
102
//! Test performance of sensitivities run (including cross-gammas) for a single-trade portfolio, with lots of
103
// buckets ("Defer" observation mode)
104
static
void
testSensiPerformanceBigScenarioCrossGammaDeferObs
();
105
//! Test performance of sensitivities run (including cross-gammas) for a single-trade portfolio, with lots of
106
// buckets ("Unregister" observation mode)
107
static
void
testSensiPerformanceBigScenarioCrossGammaUnregisterObs
();
108
109
//! Test performance of sensitivities run (including cross-gammas) for a large portfolio, with lots of buckets
110
//("None" observation mode)
111
static
void
testSensiPerformanceBigPortfolioBigScenarioCrossGammaNoneObs
();
112
//! Test performance of sensitivities run (including cross-gammas) for a large portfolio, with lots of buckets
113
//("Disable" observation mode)
114
static
void
testSensiPerformanceBigPortfolioBigScenarioCrossGammaDisableObs
();
115
//! Test performance of sensitivities run (including cross-gammas) for a large portfolio, with lots of buckets
116
//("Defer" observation mode)
117
static
void
testSensiPerformanceBigPortfolioBigScenarioCrossGammaDeferObs
();
118
//! Test performance of sensitivities run (including cross-gammas) for a large portfolio, with lots of buckets
119
//("Unregister" observation mode)
120
static
void
testSensiPerformanceBigPortfolioBigScenarioCrossGammaUnregisterObs
();
121
//! Test performance of sensitivities run (including cross-gammas) for a large portfolio, using the BackTest
122
//! sensitivity setup
123
//("None" observation mode)
124
static
void
testSensiPerformanceBTSetupNoneObs
();
125
static
boost::unit_test_framework::test_suite*
suite
();
126
};
127
}
// namespace testsuite
testsuite::SensitivityPerformancePlusTest
Sensitivity Performance tests.
Definition:
sensitivityperformanceplus.hpp:37
testsuite::SensitivityPerformancePlusTest::testSensiPerformanceDisableObs
static void testSensiPerformanceDisableObs()
Test performance of sensitivities run ("Disable" observation mode)
Definition:
sensitivityperformanceplus.cpp:838
testsuite::SensitivityPerformancePlusTest::testSensiPerformanceCrossGammaNoneObs
static void testSensiPerformanceCrossGammaNoneObs()
Test performance of sensitivities run (including cross-gammas) ("None" observation mode)
Definition:
sensitivityperformanceplus.cpp:862
testsuite::SensitivityPerformancePlusTest::testSensiPerformanceBigPortfolioBigScenarioDisableObs
static void testSensiPerformanceBigPortfolioBigScenarioDisableObs()
Test performance of sensitivities run for a large portfolio, with lots of buckets ("Disable" observat...
testsuite::SensitivityPerformancePlusTest::testSensiPerformanceBigScenarioCrossGammaUnregisterObs
static void testSensiPerformanceBigScenarioCrossGammaUnregisterObs()
Test performance of sensitivities run (including cross-gammas) for a single-trade portfolio,...
testsuite::SensitivityPerformancePlusTest::testSensiPerformanceBigPortfolioBigScenarioDeferObs
static void testSensiPerformanceBigPortfolioBigScenarioDeferObs()
Test performance of sensitivities run for a large portfolio, with lots of buckets ("Defer" observatio...
testsuite::SensitivityPerformancePlusTest::testSensiPerformanceUnregisterObs
static void testSensiPerformanceUnregisterObs()
Test performance of sensitivities run ("Unregister" observation mode)
Definition:
sensitivityperformanceplus.cpp:854
testsuite::SensitivityPerformancePlusTest::testSensiPerformanceDeferObs
static void testSensiPerformanceDeferObs()
Test performance of sensitivities run ("Defer" observation mode)
Definition:
sensitivityperformanceplus.cpp:846
testsuite::SensitivityPerformancePlusTest::testSensiPerformanceBigPortfolioCrossGammaUnregisterObs
static void testSensiPerformanceBigPortfolioCrossGammaUnregisterObs()
Test performance of sensitivities run (including cross-gammas) for a large portfolio ("Unregister" ob...
testsuite::SensitivityPerformancePlusTest::testSensiPerformanceBigPortfolioBigScenarioCrossGammaUnregisterObs
static void testSensiPerformanceBigPortfolioBigScenarioCrossGammaUnregisterObs()
Test performance of sensitivities run (including cross-gammas) for a large portfolio,...
testsuite::SensitivityPerformancePlusTest::testSensiPerformanceNoneObs
static void testSensiPerformanceNoneObs()
Test performance of sensitivities run ("None" observation mode)
Definition:
sensitivityperformanceplus.cpp:830
testsuite::SensitivityPerformancePlusTest::testSensiPerformanceBigPortfolioNoneObs
static void testSensiPerformanceBigPortfolioNoneObs()
Test performance of sensitivities run for a large portfolio ("None" observation mode)
Definition:
sensitivityperformanceplus.cpp:878
testsuite::SensitivityPerformancePlusTest::testSensiPerformanceBigScenarioDeferObs
static void testSensiPerformanceBigScenarioDeferObs()
Test performance of sensitivities run with lots of buckets ("Defer" observation mode)
testsuite::SensitivityPerformancePlusTest::testSensiPerformanceBigScenarioNoneObs
static void testSensiPerformanceBigScenarioNoneObs()
Test performance of sensitivities run with lots of buckets ("None" observation mode)
Definition:
sensitivityperformanceplus.cpp:870
testsuite::SensitivityPerformancePlusTest::testSensiPerformanceBigPortfolioDeferObs
static void testSensiPerformanceBigPortfolioDeferObs()
Test performance of sensitivities run for a large portfolio ("Defer" observation mode)
testsuite::SensitivityPerformancePlusTest::suite
static boost::unit_test_framework::test_suite * suite()
testsuite::SensitivityPerformancePlusTest::testSensiPerformanceBigPortfolioBigScenarioCrossGammaDeferObs
static void testSensiPerformanceBigPortfolioBigScenarioCrossGammaDeferObs()
Test performance of sensitivities run (including cross-gammas) for a large portfolio,...
testsuite::SensitivityPerformancePlusTest::testSensiPerformanceBigPortfolioUnregisterObs
static void testSensiPerformanceBigPortfolioUnregisterObs()
Test performance of sensitivities run for a large portfolio ("Unregister" observation mode)
testsuite::SensitivityPerformancePlusTest::testSensiPerformanceBigPortfolioBigScenarioCrossGammaNoneObs
static void testSensiPerformanceBigPortfolioBigScenarioCrossGammaNoneObs()
Test performance of sensitivities run (including cross-gammas) for a large portfolio,...
Definition:
sensitivityperformanceplus.cpp:910
testsuite::SensitivityPerformancePlusTest::testSensiPerformanceBigScenarioCrossGammaDeferObs
static void testSensiPerformanceBigScenarioCrossGammaDeferObs()
Test performance of sensitivities run (including cross-gammas) for a single-trade portfolio,...
testsuite::SensitivityPerformancePlusTest::testSensiPerformanceBigScenarioUnregisterObs
static void testSensiPerformanceBigScenarioUnregisterObs()
Test performance of sensitivities run with lots of buckets ("Unregister" observation mode)
testsuite::SensitivityPerformancePlusTest::testSensiPerformanceBigPortfolioCrossGammaDeferObs
static void testSensiPerformanceBigPortfolioCrossGammaDeferObs()
Test performance of sensitivities run (including cross-gammas) for a large portfolio ("Defer" observa...
testsuite::SensitivityPerformancePlusTest::testSensiPerformanceBigPortfolioBigScenarioUnregisterObs
static void testSensiPerformanceBigPortfolioBigScenarioUnregisterObs()
Test performance of sensitivities run for a large portfolio, with lots of buckets ("Unregister" obser...
testsuite::SensitivityPerformancePlusTest::testSensiPerformanceBigPortfolioCrossGammaNoneObs
static void testSensiPerformanceBigPortfolioCrossGammaNoneObs()
Test performance of sensitivities run (including cross-gammas) for a large portfolio ("None" observat...
Definition:
sensitivityperformanceplus.cpp:894
testsuite::SensitivityPerformancePlusTest::testSensiPerformanceBigPortfolioCrossGammaDisableObs
static void testSensiPerformanceBigPortfolioCrossGammaDisableObs()
Test performance of sensitivities run (including cross-gammas) for a large portfolio ("Disable" obser...
testsuite::SensitivityPerformancePlusTest::testSensiPerformanceBigScenarioCrossGammaDisableObs
static void testSensiPerformanceBigScenarioCrossGammaDisableObs()
Test performance of sensitivities run (including cross-gammas) for a single-trade portfolio,...
testsuite::SensitivityPerformancePlusTest::testSensiPerformanceBigPortfolioBigScenarioNoneObs
static void testSensiPerformanceBigPortfolioBigScenarioNoneObs()
Test performance of sensitivities run for a large portfolio, with lots of buckets ("None" observation...
Definition:
sensitivityperformanceplus.cpp:886
testsuite::SensitivityPerformancePlusTest::testSensiPerformanceBTSetupNoneObs
static void testSensiPerformanceBTSetupNoneObs()
Definition:
sensitivityperformanceplus.cpp:918
testsuite::SensitivityPerformancePlusTest::testSensiPerformanceCrossGammaUnregisterObs
static void testSensiPerformanceCrossGammaUnregisterObs()
Test performance of sensitivities run (including cross-gammas) ("Unregister" observation mode)
testsuite::SensitivityPerformancePlusTest::testSensiPerformanceCrossGammaDeferObs
static void testSensiPerformanceCrossGammaDeferObs()
Test performance of sensitivities run (including cross-gammas) ("Defer" observation mode)
testsuite::SensitivityPerformancePlusTest::testSensiPerformanceBigScenarioCrossGammaNoneObs
static void testSensiPerformanceBigScenarioCrossGammaNoneObs()
Test performance of sensitivities run (including cross-gammas) for a single-trade portfolio,...
Definition:
sensitivityperformanceplus.cpp:902
testsuite::SensitivityPerformancePlusTest::testSensiPerformanceCrossGammaDisableObs
static void testSensiPerformanceCrossGammaDisableObs()
Test performance of sensitivities run (including cross-gammas) ("Disable" observation mode)
testsuite::SensitivityPerformancePlusTest::testSensiPerformanceBigPortfolioBigScenarioCrossGammaDisableObs
static void testSensiPerformanceBigPortfolioBigScenarioCrossGammaDisableObs()
Test performance of sensitivities run (including cross-gammas) for a large portfolio,...
testsuite::SensitivityPerformancePlusTest::testSensiPerformanceBigScenarioDisableObs
static void testSensiPerformanceBigScenarioDisableObs()
Test performance of sensitivities run with lots of buckets ("Disable" observation mode)
testsuite::SensitivityPerformancePlusTest::testSensiPerformanceBigPortfolioDisableObs
static void testSensiPerformanceBigPortfolioDisableObs()
Test performance of sensitivities run for a large portfolio ("Disable" observation mode)
testsuite
Definition:
parsensitivityanalysis.cpp:535
Generated by
Doxygen
1.9.5