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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user