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 "Add fields and docs to WikiExporter"
[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
0e3cd73
..
b7d584a
100644
(file)
--- a/
maintenance/benchmarks/bench_HTTP_HTTPS.php
+++ b/
maintenance/benchmarks/bench_HTTP_HTTPS.php
@@
-24,6
+24,8
@@
* @author Platonides
*/
* @author Platonides
*/
+use MediaWiki\MediaWikiServices;
+
require_once __DIR__ . '/Benchmarker.php';
/**
require_once __DIR__ . '/Benchmarker.php';
/**
@@
-45,7
+47,8
@@
class BenchHttpHttps extends Benchmarker {
}
private function doRequest( $proto ) {
}
private function doRequest( $proto ) {
- Http::get( "$proto://localhost/", [], __METHOD__ );
+ MediaWikiServices::getInstance()->getHttpRequestFactory()->
+ get( "$proto://localhost/", [], __METHOD__ );
}
// bench function 1
}
// bench function 1
@@
-59,5
+62,5
@@
class BenchHttpHttps extends Benchmarker {
}
}
}
}
-$maintClass =
'BenchHttpHttps'
;
+$maintClass =
BenchHttpHttps::class
;
require_once RUN_MAINTENANCE_IF_MAIN;
require_once RUN_MAINTENANCE_IF_MAIN;