tstVBoxAPIPerf.cpp revision 5ca41ddc30d96ff1ccdb5c76d6d924adce77e635
/* $Id$ */
/** @file
* tstVBoxAPIPerf - Checks the performance of the COM / XPOM API.
*/
/*
* Copyright (C) 2006-2013 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
/*******************************************************************************
* Header Files *
*******************************************************************************/
/*******************************************************************************
* Global Variables *
*******************************************************************************/
/** Worker fro TST_COM_EXPR(). */
{
return hrc;
}
/** Macro that executes the given expression and report any failure.
* The expression must return a HRESULT. */
{
while (cLeft-- > 0)
{
{
return;
}
}
}
{
while (cLeft-- > 0)
{
{
return;
}
}
}
{
/* The first call. */
{
return;
}
/* Subsequent calls. */
uStartTS = RTTimeNanoTS();
while (cLeft-- > 0)
{
{
return;
}
}
/* Keep a reference around and see how that changes things.
Note! VBoxSVC is not creating and destroying Host(). */
uStartTS = RTTimeNanoTS();
while (cLeft-- > 0)
{
{
return;
}
}
}
{
/*
* Initialization.
*/
if (rcExit != RTEXITCODE_SUCCESS)
return rcExit;
{
{
{
/*
* Call test functions.
*/
/** @todo Find something that returns a 2nd instance of an interface and see
* how if wrapper stuff is reused in any way. */
}
}
}
else
return RTTestSummaryAndDestroy(g_hTest);
}