mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-10-06 00:30:10 -06:00
.benchmarks
git-svn-id: svn://ultimatepp.org/upp/trunk@10150 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
9d94218d5c
commit
114477be39
1 changed files with 9 additions and 1 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue