Cleanup in MagicWord::$mVariableIDs, removed IDs that aren't handled in Parser::getVa...
[lhc/web/wiklou.git] / maintenance / mctest.php
index 7deaa07..64fea06 100644 (file)
@@ -1,16 +1,28 @@
 <?php
-/* $Id$ */
+/**
+ * This script makes several 'set', 'incr' and 'get' requests on every
+ * memcached server and shows a report.
+ *
+ * $Id$
+ * @file
+ * @ingroup Maintenance
+ */
 
 $optionsWithArgs = array( 'i' );
 
 require_once('commandLine.inc');
 
+function microtime_float()
+{
+   list($usec, $sec) = explode(" ", microtime());
+   return ((float)$usec + (float)$sec);
+}
+
+
 #$wgDebugLogFile = '/dev/stdout';
 
 if ( isset( $args[0] ) ) {
        $wgMemCachedServers = array( $args[0] );
-} else {
-       $wgMemCachedServers[] = 'localhost';
 }
 if ( isset( $options['i'] ) ) {
        $iterations = $options['i'];
@@ -49,11 +61,5 @@ foreach ( $wgMemCachedServers as $server ) {
        print "set: $set   incr: $incr   get: $get time: $exectime\n";
 }
 
-function microtime_float()
-{
-   list($usec, $sec) = explode(" ", microtime());
-   return ((float)$usec + (float)$sec);
-}
 
 
-?>