diff options
author | natec <natec@users.sourceforge.net> | 2001-10-05 20:01:54 +0000 |
---|---|---|
committer | natec <natec@users.sourceforge.net> | 2001-10-05 20:01:54 +0000 |
commit | 598aab51a8e201d890a1374d4d27f6710aa94f54 (patch) | |
tree | 401d5897ed5f3a2022a9453af39c3c6859c3c489 /phpBB/develop/benchmark.php | |
parent | e6f668724c0522ead22a11f666ba19f94ab9b7f6 (diff) | |
download | forums-598aab51a8e201d890a1374d4d27f6710aa94f54.tar forums-598aab51a8e201d890a1374d4d27f6710aa94f54.tar.gz forums-598aab51a8e201d890a1374d4d27f6710aa94f54.tar.bz2 forums-598aab51a8e201d890a1374d4d27f6710aa94f54.tar.xz forums-598aab51a8e201d890a1374d4d27f6710aa94f54.zip |
slight changes to benchmark script.
git-svn-id: file:///svn/phpbb/trunk@1131 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/develop/benchmark.php')
-rw-r--r-- | phpBB/develop/benchmark.php | 12 |
1 files changed, 9 insertions, 3 deletions
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 <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(); } |