All methods got moved to HttpRequestFactory or MWHttpRequest or dropped. I made the return value of the new HttpRequestFactory::request/get/post methods null on error instead of false, so that when we drop PHP 7 support, we can use a "?string" return value. This could theoretically change behavior of code that was switched from the old Http methods, but probably won't. I kept the old behavior for the deprecated methods. I changed the default value of $wgHTTPProxy from false to ''. This way it should be usable directly without a trivial wrapper method. For the benefit of anyone who might have set it to false in LocalSettings.php, I also recommend casting to string just in case. Http::$httpEngine is deprecated. Eventually it will be removed along with the curl and PHP engines, leaving only the Guzlle engine. I also added deprecation of MWHttpRequest::factory, which occurred in 1.31, to the release notes for 1.34. Now hopefully we can hard-deprecate it in another couple of versions. Bug: T214390 Change-Id: I2a316a758d793857f248bd251b90f5e9a6440e3a |
||
|---|---|---|
| .. | ||
| cssmin | ||
| jsmin | ||
| tidy | ||
| bench_delete_truncate.php | ||
| bench_HTTP_HTTPS.php | ||
| bench_if_switch.php | ||
| bench_utf8_title_check.php | ||
| bench_wfIsWindows.php | ||
| bench_Wikimedia_base_convert.php | ||
| benchmarkCSSMin.php | ||
| Benchmarker.php | ||
| benchmarkHooks.php | ||
| benchmarkJavaScriptMinifier.php | ||
| benchmarkJSMinPlus.php | ||
| benchmarkLruHash.php | ||
| benchmarkParse.php | ||
| benchmarkPurge.php | ||
| benchmarkSanitizer.php | ||
| benchmarkStringReplacement.php | ||
| benchmarkTidy.php | ||
| benchmarkTitleValue.php | ||
| README.md | ||
This directory hold several benchmarking scripts used track performances of MediaWiki and/or PHP.
Consistency
On Linux, use of taskset and nice can help get more consistent results.
For example:
$ taskset 1 nice -n-10 php bench_wfIsWindows.php
Fixtures
- australia-untidy.html.gz: Representative input text for benchmarkTidy.php. It needs to be decompressed before use.