wiki.techinc.nl/maintenance/benchmarks
Aryeh Gregor 9018579681 Deprecate the Http class
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
2019-05-06 12:07:26 +03:00
..
cssmin Improve encoding of embedded SVGs 2017-09-14 11:39:57 -07:00
jsmin benchmarks: Add benchmark for JavaScriptMinifier 2018-08-13 18:12:21 +00:00
tidy benchmarks: Add a default to the 'file' option of benchmarkTidy.php 2018-08-13 16:45:44 +00:00
bench_delete_truncate.php Use ::class to resolve class names in maintenance scripts 2018-01-23 17:40:16 +00:00
bench_HTTP_HTTPS.php Deprecate the Http class 2019-05-06 12:07:26 +03:00
bench_if_switch.php Use ::class to resolve class names in maintenance scripts 2018-01-23 17:40:16 +00:00
bench_utf8_title_check.php Use ::class to resolve class names in maintenance scripts 2018-01-23 17:40:16 +00:00
bench_wfIsWindows.php Use ::class to resolve class names in maintenance scripts 2018-01-23 17:40:16 +00:00
bench_Wikimedia_base_convert.php Use ::class to resolve class names in maintenance scripts 2018-01-23 17:40:16 +00:00
benchmarkCSSMin.php benchmarks: Add a default to the 'file' option of benchmarkTidy.php 2018-08-13 16:45:44 +00:00
Benchmarker.php benchmarker: Implement setupEach for per-iteration setup 2018-08-20 00:22:08 -07:00
benchmarkHooks.php Use ::class to resolve class names in maintenance scripts 2018-01-23 17:40:16 +00:00
benchmarkJavaScriptMinifier.php benchmarks: Add benchmark for JavaScriptMinifier 2018-08-13 18:12:21 +00:00
benchmarkJSMinPlus.php Update suppressWarning()/restoreWarning() calls 2018-02-10 08:50:12 +00:00
benchmarkLruHash.php benchmarks: Simplify benchmarkLruHash.php by using a --method option 2018-01-28 13:48:48 -08:00
benchmarkParse.php maintenance: Deprecate Maintenance::hasArg/getArg with no param 2019-03-29 14:37:46 +01:00
benchmarkPurge.php Remove deprecated class SquidUpdate 2019-02-05 20:35:05 +01:00
benchmarkSanitizer.php benchmarks: Add benchmarkSanitizer.php 2018-01-28 13:49:48 -08:00
benchmarkStringReplacement.php benchmarks: Minor cleanup for strtr benchmark 2018-08-18 03:57:45 +00:00
benchmarkTidy.php build: Updating mediawiki/mediawiki-codesniffer to 22.0.0 2018-09-16 15:51:11 +00:00
benchmarkTitleValue.php benchmarker: Implement setupEach for per-iteration setup 2018-08-20 00:22:08 -07:00
README.md benchmarks: Improve readme and convert to Markdown 2018-01-26 16:31:54 -08:00

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.