[pLog-svn] r3417 - plog/trunk/tools
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Sun May 14 19:02:06 GMT 2006
Author: oscar
Date: 2006-05-14 19:02:06 +0000 (Sun, 14 May 2006)
New Revision: 3417
Modified:
plog/trunk/tools/genloadtestdata.php
Log:
fixed a problem generating GET requests
Modified: plog/trunk/tools/genloadtestdata.php
===================================================================
--- plog/trunk/tools/genloadtestdata.php 2006-05-14 18:33:10 UTC (rev 3416)
+++ plog/trunk/tools/genloadtestdata.php 2006-05-14 19:02:06 UTC (rev 3417)
@@ -3,12 +3,12 @@
/**
* number of requests to perform
*/
- define( "NUM_REQUESTS", 10 );
+ define( "NUM_REQUESTS", 100 );
/**
* base url for these tests
*/
- define( "BASE_URL", "http://localhost/plog/" );
+ define( "BASE_URL", "http://devel.lifetype.net/" );
/**
* proportion of GET requests
@@ -59,7 +59,7 @@
}
else {
// generate a permalink
- $url = BASE_URL."index.php?op=ViewArticle$blogId=".$blogId."&articleId=".$articleId;
+ $url = BASE_URL."index.php?op=ViewArticle&blogId=".$blogId."&articleId=".$articleId;
}
printGET( $url );
@@ -69,7 +69,7 @@
$url = BASE_URL."index.php";
// form values
$form = Array ( "articleId" => $articleId, "op" => "AddComment", "commentTopic" => generateRandomWords(rand(1,15)),
- "commentText" => generateRandomParagraphs(rand(1,5)), "blogId" => $blogId,
+ "commentText" => generateRandomParagraphs(rand(1,2)), "blogId" => $blogId,
"userName" => "loadtest" );
// print the request
printPOST( $url, $form );
More information about the pLog-svn
mailing list