mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-30 06:12:20 -06:00
.autotests
git-svn-id: svn://ultimatepp.org/upp/trunk@7164 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
7df7017b8e
commit
0cfdc224aa
8 changed files with 44 additions and 24 deletions
|
|
@ -2,12 +2,6 @@
|
|||
|
||||
using namespace Upp;
|
||||
|
||||
#ifdef flagLONG
|
||||
#define N 100000000
|
||||
#else
|
||||
#define N 1000000
|
||||
#endif
|
||||
|
||||
String RandomString(int n)
|
||||
{
|
||||
String h;
|
||||
|
|
@ -20,8 +14,10 @@ CONSOLE_APP_MAIN
|
|||
{
|
||||
StringStream ss;
|
||||
String es;
|
||||
for(int i = 0; i < 100000000; i++) {
|
||||
if(i % 10000 == 0)
|
||||
int time0 = msecs();
|
||||
int i = 0;
|
||||
while(msecs(time0) < 150000) {
|
||||
if(++i % 10000 == 0)
|
||||
Cout() << i << "\r\n";
|
||||
int p = Random(1000);
|
||||
String h = RandomString(p);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue