Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
SensitivityPerformancePlusTest Class Reference

Sensitivity Performance tests. More...

#include <test/sensitivityperformanceplus.hpp>

+ Collaboration diagram for SensitivityPerformancePlusTest:

Static Public Member Functions

static void testSensiPerformanceNoneObs ()
 Test performance of sensitivities run ("None" observation mode) More...
 
static void testSensiPerformanceDisableObs ()
 Test performance of sensitivities run ("Disable" observation mode) More...
 
static void testSensiPerformanceDeferObs ()
 Test performance of sensitivities run ("Defer" observation mode) More...
 
static void testSensiPerformanceUnregisterObs ()
 Test performance of sensitivities run ("Unregister" observation mode) More...
 
static void testSensiPerformanceCrossGammaNoneObs ()
 Test performance of sensitivities run (including cross-gammas) ("None" observation mode) More...
 
static void testSensiPerformanceCrossGammaDisableObs ()
 Test performance of sensitivities run (including cross-gammas) ("Disable" observation mode) More...
 
static void testSensiPerformanceCrossGammaDeferObs ()
 Test performance of sensitivities run (including cross-gammas) ("Defer" observation mode) More...
 
static void testSensiPerformanceCrossGammaUnregisterObs ()
 Test performance of sensitivities run (including cross-gammas) ("Unregister" observation mode) More...
 
static void testSensiPerformanceBigScenarioNoneObs ()
 Test performance of sensitivities run with lots of buckets ("None" observation mode) More...
 
static void testSensiPerformanceBigScenarioDisableObs ()
 Test performance of sensitivities run with lots of buckets ("Disable" observation mode) More...
 
static void testSensiPerformanceBigScenarioDeferObs ()
 Test performance of sensitivities run with lots of buckets ("Defer" observation mode) More...
 
static void testSensiPerformanceBigScenarioUnregisterObs ()
 Test performance of sensitivities run with lots of buckets ("Unregister" observation mode) More...
 
static void testSensiPerformanceBigPortfolioNoneObs ()
 Test performance of sensitivities run for a large portfolio ("None" observation mode) More...
 
static void testSensiPerformanceBigPortfolioDisableObs ()
 Test performance of sensitivities run for a large portfolio ("Disable" observation mode) More...
 
static void testSensiPerformanceBigPortfolioDeferObs ()
 Test performance of sensitivities run for a large portfolio ("Defer" observation mode) More...
 
static void testSensiPerformanceBigPortfolioUnregisterObs ()
 Test performance of sensitivities run for a large portfolio ("Unregister" observation mode) More...
 
static void testSensiPerformanceBigPortfolioBigScenarioNoneObs ()
 Test performance of sensitivities run for a large portfolio, with lots of buckets ("None" observation mode) More...
 
static void testSensiPerformanceBigPortfolioBigScenarioDisableObs ()
 Test performance of sensitivities run for a large portfolio, with lots of buckets ("Disable" observation mode) More...
 
static void testSensiPerformanceBigPortfolioBigScenarioDeferObs ()
 Test performance of sensitivities run for a large portfolio, with lots of buckets ("Defer" observation mode) More...
 
static void testSensiPerformanceBigPortfolioBigScenarioUnregisterObs ()
 Test performance of sensitivities run for a large portfolio, with lots of buckets ("Unregister" observation. More...
 
static void testSensiPerformanceBigPortfolioCrossGammaNoneObs ()
 Test performance of sensitivities run (including cross-gammas) for a large portfolio ("None" observation mode) More...
 
static void testSensiPerformanceBigPortfolioCrossGammaDisableObs ()
 Test performance of sensitivities run (including cross-gammas) for a large portfolio ("Disable" observation. More...
 
static void testSensiPerformanceBigPortfolioCrossGammaDeferObs ()
 Test performance of sensitivities run (including cross-gammas) for a large portfolio ("Defer" observation mode) More...
 
static void testSensiPerformanceBigPortfolioCrossGammaUnregisterObs ()
 Test performance of sensitivities run (including cross-gammas) for a large portfolio ("Unregister" observation. More...
 
static void testSensiPerformanceBigScenarioCrossGammaNoneObs ()
 Test performance of sensitivities run (including cross-gammas) for a single-trade portfolio, with lots of. More...
 
static void testSensiPerformanceBigScenarioCrossGammaDisableObs ()
 Test performance of sensitivities run (including cross-gammas) for a single-trade portfolio, with lots of. More...
 
static void testSensiPerformanceBigScenarioCrossGammaDeferObs ()
 Test performance of sensitivities run (including cross-gammas) for a single-trade portfolio, with lots of. More...
 
static void testSensiPerformanceBigScenarioCrossGammaUnregisterObs ()
 Test performance of sensitivities run (including cross-gammas) for a single-trade portfolio, with lots of. More...
 
static void testSensiPerformanceBigPortfolioBigScenarioCrossGammaNoneObs ()
 Test performance of sensitivities run (including cross-gammas) for a large portfolio, with lots of buckets. More...
 
static void testSensiPerformanceBigPortfolioBigScenarioCrossGammaDisableObs ()
 Test performance of sensitivities run (including cross-gammas) for a large portfolio, with lots of buckets. More...
 
static void testSensiPerformanceBigPortfolioBigScenarioCrossGammaDeferObs ()
 Test performance of sensitivities run (including cross-gammas) for a large portfolio, with lots of buckets. More...
 
static void testSensiPerformanceBigPortfolioBigScenarioCrossGammaUnregisterObs ()
 Test performance of sensitivities run (including cross-gammas) for a large portfolio, with lots of buckets. More...
 
static void testSensiPerformanceBTSetupNoneObs ()
 
static boost::unit_test_framework::test_suite * suite ()
 

Detailed Description

Sensitivity Performance tests.

This is a performance test for the zero rate sensitivities generation in ORE+. It is almost identical to the test in ORE, but it instead makes use of oreplus::sensitivity::SensitivityAnalysis (which uses a DeltaScenarioFactory)

Definition at line 37 of file sensitivityperformanceplus.hpp.

Member Function Documentation

◆ testSensiPerformanceNoneObs()

void testSensiPerformanceNoneObs ( )
static

Test performance of sensitivities run ("None" observation mode)

Definition at line 830 of file sensitivityperformanceplus.cpp.

830 {
831 boost::timer::cpu_timer timer;
832 ObservationMode::Mode om = ObservationMode::Mode::None;
833 test_performance(false, false, false, false, om);
834 timer.stop();
835 BOOST_TEST_MESSAGE("total time = " << timer.format(boost::timer::default_places, "%w") << " seconds");
836}
void test_performance(Size portfolioSize, ObservationMode::Mode om, double nonZeroPVRatio, vector< Real > &epe_archived, vector< Real > &ene_archived)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ testSensiPerformanceDisableObs()

void testSensiPerformanceDisableObs ( )
static

Test performance of sensitivities run ("Disable" observation mode)

Definition at line 838 of file sensitivityperformanceplus.cpp.

838 {
839 boost::timer::cpu_timer timer;
840 ObservationMode::Mode om = ObservationMode::Mode::Disable;
841 test_performance(false, false, false, false, om);
842 timer.stop();
843 BOOST_TEST_MESSAGE("total time = " << timer.format(boost::timer::default_places, "%w") << " seconds");
844}
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ testSensiPerformanceDeferObs()

void testSensiPerformanceDeferObs ( )
static

Test performance of sensitivities run ("Defer" observation mode)

Definition at line 846 of file sensitivityperformanceplus.cpp.

846 {
847 boost::timer::cpu_timer timer;
848 ObservationMode::Mode om = ObservationMode::Mode::Defer;
849 test_performance(false, false, false, false, om);
850 timer.stop();
851 BOOST_TEST_MESSAGE("total time = " << timer.format(boost::timer::default_places, "%w") << " seconds");
852}
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ testSensiPerformanceUnregisterObs()

void testSensiPerformanceUnregisterObs ( )
static

Test performance of sensitivities run ("Unregister" observation mode)

Definition at line 854 of file sensitivityperformanceplus.cpp.

854 {
855 boost::timer::cpu_timer timer;
856 ObservationMode::Mode om = ObservationMode::Mode::Unregister;
857 test_performance(false, false, false, false, om);
858 timer.stop();
859 BOOST_TEST_MESSAGE("total time = " << timer.format(boost::timer::default_places, "%w") << " seconds");
860}
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ testSensiPerformanceCrossGammaNoneObs()

void testSensiPerformanceCrossGammaNoneObs ( )
static

Test performance of sensitivities run (including cross-gammas) ("None" observation mode)

Definition at line 862 of file sensitivityperformanceplus.cpp.

862 {
863 boost::timer::cpu_timer timer;
864 ObservationMode::Mode om = ObservationMode::Mode::None;
865 test_performance(false, false, false, true, om);
866 timer.stop();
867 BOOST_TEST_MESSAGE("total time = " << timer.format(boost::timer::default_places, "%w") << " seconds");
868}
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ testSensiPerformanceCrossGammaDisableObs()

static void testSensiPerformanceCrossGammaDisableObs ( )
static

Test performance of sensitivities run (including cross-gammas) ("Disable" observation mode)

◆ testSensiPerformanceCrossGammaDeferObs()

static void testSensiPerformanceCrossGammaDeferObs ( )
static

Test performance of sensitivities run (including cross-gammas) ("Defer" observation mode)

◆ testSensiPerformanceCrossGammaUnregisterObs()

static void testSensiPerformanceCrossGammaUnregisterObs ( )
static

Test performance of sensitivities run (including cross-gammas) ("Unregister" observation mode)

◆ testSensiPerformanceBigScenarioNoneObs()

void testSensiPerformanceBigScenarioNoneObs ( )
static

Test performance of sensitivities run with lots of buckets ("None" observation mode)

Definition at line 870 of file sensitivityperformanceplus.cpp.

870 {
871 boost::timer::cpu_timer timer;
872 ObservationMode::Mode om = ObservationMode::Mode::None;
873 test_performance(false, true, false, false, om);
874 timer.stop();
875 BOOST_TEST_MESSAGE("total time = " << timer.format(boost::timer::default_places, "%w") << " seconds");
876}
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ testSensiPerformanceBigScenarioDisableObs()

static void testSensiPerformanceBigScenarioDisableObs ( )
static

Test performance of sensitivities run with lots of buckets ("Disable" observation mode)

◆ testSensiPerformanceBigScenarioDeferObs()

static void testSensiPerformanceBigScenarioDeferObs ( )
static

Test performance of sensitivities run with lots of buckets ("Defer" observation mode)

◆ testSensiPerformanceBigScenarioUnregisterObs()

static void testSensiPerformanceBigScenarioUnregisterObs ( )
static

Test performance of sensitivities run with lots of buckets ("Unregister" observation mode)

◆ testSensiPerformanceBigPortfolioNoneObs()

void testSensiPerformanceBigPortfolioNoneObs ( )
static

Test performance of sensitivities run for a large portfolio ("None" observation mode)

Definition at line 878 of file sensitivityperformanceplus.cpp.

878 {
879 boost::timer::cpu_timer timer;
880 ObservationMode::Mode om = ObservationMode::Mode::None;
881 test_performance(true, false, false, false, om);
882 timer.stop();
883 BOOST_TEST_MESSAGE("total time = " << timer.format(boost::timer::default_places, "%w") << " seconds");
884}
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ testSensiPerformanceBigPortfolioDisableObs()

static void testSensiPerformanceBigPortfolioDisableObs ( )
static

Test performance of sensitivities run for a large portfolio ("Disable" observation mode)

◆ testSensiPerformanceBigPortfolioDeferObs()

static void testSensiPerformanceBigPortfolioDeferObs ( )
static

Test performance of sensitivities run for a large portfolio ("Defer" observation mode)

◆ testSensiPerformanceBigPortfolioUnregisterObs()

static void testSensiPerformanceBigPortfolioUnregisterObs ( )
static

Test performance of sensitivities run for a large portfolio ("Unregister" observation mode)

◆ testSensiPerformanceBigPortfolioBigScenarioNoneObs()

void testSensiPerformanceBigPortfolioBigScenarioNoneObs ( )
static

Test performance of sensitivities run for a large portfolio, with lots of buckets ("None" observation mode)

Definition at line 886 of file sensitivityperformanceplus.cpp.

886 {
887 boost::timer::cpu_timer timer;
888 ObservationMode::Mode om = ObservationMode::Mode::None;
889 test_performance(true, true, false, false, om);
890 timer.stop();
891 BOOST_TEST_MESSAGE("total time = " << timer.format(boost::timer::default_places, "%w") << " seconds");
892}
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ testSensiPerformanceBigPortfolioBigScenarioDisableObs()

static void testSensiPerformanceBigPortfolioBigScenarioDisableObs ( )
static

Test performance of sensitivities run for a large portfolio, with lots of buckets ("Disable" observation mode)

◆ testSensiPerformanceBigPortfolioBigScenarioDeferObs()

static void testSensiPerformanceBigPortfolioBigScenarioDeferObs ( )
static

Test performance of sensitivities run for a large portfolio, with lots of buckets ("Defer" observation mode)

◆ testSensiPerformanceBigPortfolioBigScenarioUnregisterObs()

static void testSensiPerformanceBigPortfolioBigScenarioUnregisterObs ( )
static

Test performance of sensitivities run for a large portfolio, with lots of buckets ("Unregister" observation.

◆ testSensiPerformanceBigPortfolioCrossGammaNoneObs()

void testSensiPerformanceBigPortfolioCrossGammaNoneObs ( )
static

Test performance of sensitivities run (including cross-gammas) for a large portfolio ("None" observation mode)

Definition at line 894 of file sensitivityperformanceplus.cpp.

894 {
895 boost::timer::cpu_timer timer;
896 ObservationMode::Mode om = ObservationMode::Mode::None;
897 test_performance(true, false, false, true, om);
898 timer.stop();
899 BOOST_TEST_MESSAGE("total time = " << timer.format(boost::timer::default_places, "%w") << " seconds");
900}
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ testSensiPerformanceBigPortfolioCrossGammaDisableObs()

static void testSensiPerformanceBigPortfolioCrossGammaDisableObs ( )
static

Test performance of sensitivities run (including cross-gammas) for a large portfolio ("Disable" observation.

◆ testSensiPerformanceBigPortfolioCrossGammaDeferObs()

static void testSensiPerformanceBigPortfolioCrossGammaDeferObs ( )
static

Test performance of sensitivities run (including cross-gammas) for a large portfolio ("Defer" observation mode)

◆ testSensiPerformanceBigPortfolioCrossGammaUnregisterObs()

static void testSensiPerformanceBigPortfolioCrossGammaUnregisterObs ( )
static

Test performance of sensitivities run (including cross-gammas) for a large portfolio ("Unregister" observation.

◆ testSensiPerformanceBigScenarioCrossGammaNoneObs()

void testSensiPerformanceBigScenarioCrossGammaNoneObs ( )
static

Test performance of sensitivities run (including cross-gammas) for a single-trade portfolio, with lots of.

Definition at line 902 of file sensitivityperformanceplus.cpp.

902 {
903 boost::timer::cpu_timer timer;
904 ObservationMode::Mode om = ObservationMode::Mode::None;
905 test_performance(false, true, false, true, om);
906 timer.stop();
907 BOOST_TEST_MESSAGE("total time = " << timer.format(boost::timer::default_places, "%w") << " seconds");
908}
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ testSensiPerformanceBigScenarioCrossGammaDisableObs()

static void testSensiPerformanceBigScenarioCrossGammaDisableObs ( )
static

Test performance of sensitivities run (including cross-gammas) for a single-trade portfolio, with lots of.

◆ testSensiPerformanceBigScenarioCrossGammaDeferObs()

static void testSensiPerformanceBigScenarioCrossGammaDeferObs ( )
static

Test performance of sensitivities run (including cross-gammas) for a single-trade portfolio, with lots of.

◆ testSensiPerformanceBigScenarioCrossGammaUnregisterObs()

static void testSensiPerformanceBigScenarioCrossGammaUnregisterObs ( )
static

Test performance of sensitivities run (including cross-gammas) for a single-trade portfolio, with lots of.

◆ testSensiPerformanceBigPortfolioBigScenarioCrossGammaNoneObs()

void testSensiPerformanceBigPortfolioBigScenarioCrossGammaNoneObs ( )
static

Test performance of sensitivities run (including cross-gammas) for a large portfolio, with lots of buckets.

Definition at line 910 of file sensitivityperformanceplus.cpp.

910 {
911 boost::timer::cpu_timer timer;
912 ObservationMode::Mode om = ObservationMode::Mode::None;
913 test_performance(true, true, false, true, om);
914 timer.stop();
915 BOOST_TEST_MESSAGE("total time = " << timer.format(boost::timer::default_places, "%w") << " seconds");
916}
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ testSensiPerformanceBigPortfolioBigScenarioCrossGammaDisableObs()

static void testSensiPerformanceBigPortfolioBigScenarioCrossGammaDisableObs ( )
static

Test performance of sensitivities run (including cross-gammas) for a large portfolio, with lots of buckets.

◆ testSensiPerformanceBigPortfolioBigScenarioCrossGammaDeferObs()

static void testSensiPerformanceBigPortfolioBigScenarioCrossGammaDeferObs ( )
static

Test performance of sensitivities run (including cross-gammas) for a large portfolio, with lots of buckets.

◆ testSensiPerformanceBigPortfolioBigScenarioCrossGammaUnregisterObs()

static void testSensiPerformanceBigPortfolioBigScenarioCrossGammaUnregisterObs ( )
static

Test performance of sensitivities run (including cross-gammas) for a large portfolio, with lots of buckets.

◆ testSensiPerformanceBTSetupNoneObs()

void testSensiPerformanceBTSetupNoneObs ( )
static

Test performance of sensitivities run (including cross-gammas) for a large portfolio, using the BackTest sensitivity setup

Definition at line 918 of file sensitivityperformanceplus.cpp.

918 {
919 boost::timer::cpu_timer timer;
920 ObservationMode::Mode om = ObservationMode::Mode::None;
921 BT_Benchmark(true, om);
922 timer.stop();
923 BOOST_TEST_MESSAGE("total time = " << timer.format(boost::timer::default_places, "%w") << " seconds");
924}
+ Here is the caller graph for this function:

◆ suite()

static boost::unit_test_framework::test_suite * suite ( )
static