From 598aab51a8e201d890a1374d4d27f6710aa94f54 Mon Sep 17 00:00:00 2001 From: natec Date: Fri, 5 Oct 2001 20:01:54 +0000 Subject: slight changes to benchmark script. git-svn-id: file:///svn/phpbb/trunk@1131 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/develop/benchmark.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'phpBB') diff --git a/phpBB/develop/benchmark.php b/phpBB/develop/benchmark.php index bcfbbdb63e..d4ab617d83 100644 --- a/phpBB/develop/benchmark.php +++ b/phpBB/develop/benchmark.php @@ -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
\n"; + $usercreationcount++; + $users--; + } + if (($usercreationcount % 500) == 0) + { + echo "status: $usercreationcount
\n"; flush(); } - $users--; + } if ($posts > 0) @@ -134,7 +140,7 @@ function filldb($newposts) if (($i % 1000) == 0) { - echo "ping.pong.
"; + echo "status: $i
"; flush(); } -- cgit v1.2.1