mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 06:51:08 +02:00
slight changes to benchmark script.
git-svn-id: file:///svn/phpbb/trunk@1131 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -48,16 +48,22 @@ $u = $users;
|
|||||||
|
|
||||||
$starttime = microtime();
|
$starttime = microtime();
|
||||||
|
|
||||||
|
$usercreationcount = 0;
|
||||||
while($users > 0)
|
while($users > 0)
|
||||||
{
|
{
|
||||||
|
|
||||||
$name = "testuser_" . substr(md5(uniqid(rand())), 0, 10);
|
$name = "testuser_" . substr(md5(uniqid(rand())), 0, 10);
|
||||||
if (make_user($name))
|
if (make_user($name))
|
||||||
{
|
{
|
||||||
echo "Created user: $name <br>\n";
|
$usercreationcount++;
|
||||||
|
$users--;
|
||||||
|
}
|
||||||
|
if (($usercreationcount % 500) == 0)
|
||||||
|
{
|
||||||
|
echo "status: $usercreationcount <br>\n";
|
||||||
flush();
|
flush();
|
||||||
}
|
}
|
||||||
$users--;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($posts > 0)
|
if ($posts > 0)
|
||||||
@@ -134,7 +140,7 @@ function filldb($newposts)
|
|||||||
|
|
||||||
if (($i % 1000) == 0)
|
if (($i % 1000) == 0)
|
||||||
{
|
{
|
||||||
echo "ping.pong.<br>";
|
echo "status: $i <br>";
|
||||||
flush();
|
flush();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user