add the possibility to pass numeric parameters to benchmark functions

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55332 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-08-28 17:14:39 +00:00
parent 3bbc1d95a1
commit 8fad8b2e52
3 changed files with 38 additions and 6 deletions

View File

@@ -296,7 +296,13 @@ BENCHMARK_FUNC(ParseHTML)
static wxString html;
if ( html.empty() )
{
wxFFile("htmltest.html").ReadAll(&html, wxConvUTF8);
wxString html1;
wxFFile("htmltest.html").ReadAll(&html1, wxConvUTF8);
// this is going to make for some invalid HTML, of course, but it
// doesn't really matter
for ( long n = 0; n < Bench::GetNumericParameter(); n++ )
html += html1;
}
parser.Parse(html);