slight changes to benchmark script.

git-svn-id: file:///svn/phpbb/trunk@1131 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
natec 2001-10-05 20:01:54 +00:00
parent e6f668724c
commit 598aab51a8

View file

@ -48,16 +48,22 @@ $u = $users;
$starttime = microtime();
$usercreationcount = 0;
while($users > 0)
{
$name = "testuser_" . substr(md5(uniqid(rand())), 0, 10);
if (make_user($name))
{
echo "Created user: $name <br>\n";
$usercreationcount++;
$users--;
}
if (($usercreationcount % 500) == 0)
{
echo "status: $usercreationcount <br>\n";
flush();
}
$users--;
}
if ($posts > 0)
@ -134,7 +140,7 @@ function filldb($newposts)
if (($i % 1000) == 0)
{
echo "ping.pong.<br>";
echo "status: $i <br>";
flush();
}