.benchmarks

git-svn-id: svn://ultimatepp.org/upp/trunk@10150 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2016-08-07 09:32:33 +00:00
commit 114477be39

View file

@ -2,12 +2,18 @@
using namespace Upp;
#ifdef _DEBUG
#define N 1000
#else
#define N 10000000
#endif
CONSOLE_APP_MAIN
{
StdLogSetup(LOG_FILE|LOG_COUT);
Vector<String> h;
for(int i = 0; i < 10000000; i++)
for(int i = 0; i < N; i++)
h.Add(AsString(Random()));
{
@ -23,4 +29,6 @@ CONSOLE_APP_MAIN
CoSort(h1);
RLOG("CoSort " << tm);
}
DLOG("Exit");
}