.benchmarks

git-svn-id: svn://ultimatepp.org/upp/trunk@14435 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2020-05-08 08:09:34 +00:00
parent 0210e8cd2a
commit ad1cd09d10
3 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,21 @@
#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;
}
}

View file

@ -0,0 +1,9 @@
uses
Core;
file
StreamGet32.cpp;
mainconfig
"" = "";

View file

@ -17,6 +17,12 @@ CONSOLE_APP_MAIN
#endif
#ifdef CPP_11
RLOG("CPP_11");
#endif
#ifdef CPU_X86
RLOG("CPU_X86");
#endif
#ifdef CPU_ARM
RLOG("CPU_ARM");
#endif
RLOG("========================");
RDUMP(sizeof(bool));