Market-model tests

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Market-model tests

Luigi Ballabio

Hi all,
        now that the market-model tests for the callable-swap were re-enabled,
the test suite seems to take forever (as in more than one hour on a
recent machine.) Is it because CurveState's methods are now virtual?

Later,
        Luigi

----------------------------------------

I'd never join any club that would have the likes of me as a member.
-- Groucho Marx



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev
Reply | Threaded
Open this post in threaded view
|

Re: Market-model tests

Ferdinando M. Ametrano-3
Hi Luigi

On 4/19/07, Luigi Ballabio <[hidden email]> wrote:
>         now that the market-model tests for the callable-swap were re-enabled,
> the test suite seems to take forever (as in more than one hour on a
> recent machine.) Is it because CurveState's methods are now virtual?

unfortunately we didn't check the performance hit of having virtual
methods in CurveState when we introduced them. My impression anyway is
that the current test-suite overall timing of about 52 minutes (on my
workstation) is to be compared with 40-something in the previous state
of affairs.

ciao -- Nando

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev
Reply | Threaded
Open this post in threaded view
|

Re: Market-model tests

Luigi Ballabio
On Fri, 2007-04-20 at 23:48 +0200, Ferdinando Ametrano wrote:

> On 4/19/07, Luigi Ballabio <[hidden email]> wrote:
> >         now that the market-model tests for the callable-swap were re-enabled,
> > the test suite seems to take forever (as in more than one hour on a
> > recent machine.) Is it because CurveState's methods are now virtual?
>
> unfortunately we didn't check the performance hit of having virtual
> methods in CurveState when we introduced them. My impression anyway is
> that the current test-suite overall timing of about 52 minutes (on my
> workstation) is to be compared with 40-something in the previous state
> of affairs.

You're right. I tried coding CurveState as a non-virtual class, and the
performance doesn't seem to change much. It might be worth committing it
anyway, as it removes the CurveState hierarchy. What do you think?

Later,
        Luigi


----------------------------------------

Blessed is the man who, having nothing to say, abstains from giving
wordy evidence of the fact.
-- George Eliot



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev