ultimatepp/benchmarks/StreamGet32/StreamGet32.cpp
cxl ad1cd09d10 .benchmarks
git-svn-id: svn://ultimatepp.org/upp/trunk@14435 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-05-08 08:09:34 +00:00

21 lines
300 B
C++

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