ultimatepp/benchmarks/StreamGet32/StreamGet32.cpp
cxl 684b8f056e .benchmarks
git-svn-id: svn://ultimatepp.org/upp/trunk@14441 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-05-08 14:11:48 +00:00

21 lines
301 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 < 1000; i++) {
StringStream ss(s);
RTIMING("Time");
int q = 0;
while(!ss.IsEof())
q += ss.Get32();
qqq += q;
}
}