ultimatepp/benchmarks/utf8transcoding/utf8transcoding.cpp
cxl f706d69858 .benchmarks
git-svn-id: svn://ultimatepp.org/upp/trunk@16038 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2021-07-31 09:14:22 +00:00

17 lines
267 B
C++

#include <Core/Core.h>
using namespace Upp;
CONSOLE_APP_MAIN
{
WString x;
for(int i = 0; i < 1000000; i++)
x.Cat(Random(20000));
String utf8 = x.ToString();
for(int i = 0; i < 100; i++) {
RTIMING("conversion");
utf8.ToWString();
}
}