ultimatepp/benchmarks/CoSort/CoSort.cpp
cxl 91a2feead6 .benchmarks
git-svn-id: svn://ultimatepp.org/upp/trunk@10063 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-07-18 08:27:23 +00:00

26 lines
373 B
C++

#include <Core/Core.h>
using namespace Upp;
CONSOLE_APP_MAIN
{
StdLogSetup(LOG_FILE|LOG_COUT);
Vector<String> h;
for(int i = 0; i < 10000000; i++)
h.Add(AsString(Random()));
{
auto h1 = clone(h);
TimeStop tm;
Sort(h1);
RLOG("Sort " << tm);
}
{
auto h1 = clone(h);
TimeStop tm;
CoSort(h1);
RLOG("CoSort " << tm);
}
}