.benchmarks

git-svn-id: svn://ultimatepp.org/upp/trunk@10063 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2016-07-18 08:27:23 +00:00
parent 266c3c8c6d
commit 91a2feead6
3 changed files with 39 additions and 0 deletions

View file

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

View file

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

4
benchmarks/CoSort/init Normal file
View file

@ -0,0 +1,4 @@
#ifndef _CoSort_icpp_init_stub
#define _CoSort_icpp_init_stub
#include "Core/init"
#endif