mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
slight changes to benchmark script.
git-svn-id: file:///svn/phpbb/trunk@1131 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
e6f668724c
commit
598aab51a8
1 changed files with 9 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue