dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Updated Revision::newFromId() callers to use READ_LATEST as needed"
[lhc/web/wiklou.git]
/
maintenance
/
benchmarks
/
bench_HTTP_HTTPS.php
diff --git
a/maintenance/benchmarks/bench_HTTP_HTTPS.php
b/maintenance/benchmarks/bench_HTTP_HTTPS.php
index
6f800fb
..
1569234
100644
(file)
--- a/
maintenance/benchmarks/bench_HTTP_HTTPS.php
+++ b/
maintenance/benchmarks/bench_HTTP_HTTPS.php
@@
-31,8
+31,7
@@
require_once __DIR__ . '/Benchmarker.php';
*
* @ingroup Benchmark
*/
*
* @ingroup Benchmark
*/
-class bench_HTTP_HTTPS extends Benchmarker {
-
+class BenchHttpHttps extends Benchmarker {
public function __construct() {
parent::__construct();
$this->mDescription = "Benchmark HTTP request vs HTTPS request.";
public function __construct() {
parent::__construct();
$this->mDescription = "Benchmark HTTP request vs HTTPS request.";
@@
-42,12
+41,12
@@
class bench_HTTP_HTTPS extends Benchmarker {
$this->bench( array(
array( 'function' => array( $this, 'getHTTP' ) ),
array( 'function' => array( $this, 'getHTTPS' ) ),
$this->bench( array(
array( 'function' => array( $this, 'getHTTP' ) ),
array( 'function' => array( $this, 'getHTTPS' ) ),
- ));
+ )
);
print $this->getFormattedResults();
}
static function doRequest( $proto ) {
print $this->getFormattedResults();
}
static function doRequest( $proto ) {
- Http::get( "$proto://localhost/" );
+ Http::get( "$proto://localhost/"
, array(), __METHOD__
);
}
// bench function 1
}
// bench function 1
@@
-61,5
+60,5
@@
class bench_HTTP_HTTPS extends Benchmarker {
}
}
}
}
-$maintClass = '
bench_HTTP_HTTPS
';
+$maintClass = '
BenchHttpHttps
';
require_once RUN_MAINTENANCE_IF_MAIN;
require_once RUN_MAINTENANCE_IF_MAIN;