ultimatepp/benchmarks/StreamGet32/StreamGet32.cpp
cxl 04330dfc7b .benchmarks
git-svn-id: svn://ultimatepp.org/upp/trunk@14478 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-05-15 08:09:07 +00:00

23 lines
337 B
C++

#include <Core/Core.h>
using namespace Upp;
dword qqq;
CONSOLE_APP_MAIN
{
StdLogSetup(LOG_COUT|LOG_FILE);
String s;
for(int i = 0; i < 1000000; i++)
s.Cat(i);
for(int i = 0; i < 1000; i++) {
StringStream ss(s);
RTIMING("Time");
int q = 0;
while(!ss.IsEof())
q += ss.Get32();
qqq += q;
}
}