mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
25 lines
313 B
C++
25 lines
313 B
C++
#include <Core/Core.h>
|
|
|
|
using namespace Upp;
|
|
|
|
CONSOLE_APP_MAIN
|
|
{
|
|
Index<String> n;
|
|
Vector<String> v;
|
|
|
|
for(int i = 0; i < 10000000; i++) {
|
|
String s = AsString(Random());
|
|
n.Add(s);
|
|
v.Add(s);
|
|
}
|
|
|
|
{
|
|
RTIMING("Sort");
|
|
Sort(v);
|
|
}
|
|
|
|
{
|
|
RTIMING("IndexSort");
|
|
SortIndex(n);
|
|
}
|
|
}
|