mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
23 lines
448 B
C++
23 lines
448 B
C++
#include <Core/Core.h>
|
|
|
|
using namespace Upp;
|
|
|
|
CONSOLE_APP_MAIN
|
|
{
|
|
StdLogSetup(LOG_COUT|LOG_FILE);
|
|
|
|
Vector<int> data;
|
|
for(int i = 0; i < 100000000; i++)
|
|
data.Add(Random());
|
|
|
|
{
|
|
RTIMING("FindAll");
|
|
RDUMP(FindAll(data, [=](int c) { return c % 177777 == 0; }).GetCount());
|
|
}
|
|
{
|
|
RTIMING("CoFindAll");
|
|
RDUMP(CoFindAll(data, [=](int c) { return c % 177777 == 0; }).GetCount());
|
|
}
|
|
|
|
LOG("===================== OK");
|
|
}
|