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@10152 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
7006e3aacc
commit
9b16db6032
1 changed files with 11 additions and 2 deletions
|
|
@ -3,7 +3,7 @@
|
|||
using namespace Upp;
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define N 1000
|
||||
#define N 10000
|
||||
#else
|
||||
#define N 10000000
|
||||
#endif
|
||||
|
|
@ -29,6 +29,15 @@ CONSOLE_APP_MAIN
|
|||
CoSort(h1);
|
||||
RLOG("CoSort " << tm);
|
||||
}
|
||||
|
||||
{
|
||||
CoWork::SetPoolSize(400);
|
||||
auto h1 = clone(h);
|
||||
TimeStop tm;
|
||||
CoSort(h1);
|
||||
RLOG("CoSort (big pool) " << tm);
|
||||
}
|
||||
|
||||
DLOG("Exit");
|
||||
Thread::ShutdownThreads();
|
||||
RLOG("Exit");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue