* Convert to using RunningStat to ensure mostly constant memory
usage, instead of storing each result.
* Remove 'median' (no longer possible with this setup).
* Remove 'min' from output.
Change-Id: I6efbc500181eb502c1800165870eee81dbc418a7
Clean up use of @codingStandardsIgnore
- @codingStandardsIgnoreFile -> phpcs:ignoreFile
- @codingStandardsIgnoreLine -> phpcs:ignore
- @codingStandardsIgnoreStart -> phpcs:disable
- @codingStandardsIgnoreEnd -> phpcs:enable
For phpcs:disable always the necessary sniffs are provided.
Some start/end pairs are changed to line ignore
Change-Id: I92ef235849bcc349c69e53504e664a155dd162c8
Deprecate the second argument to Maintenance::error() in favor of a new
Maintenance::fatalError() method. This is intended to make it easier to
review flow control in maintenance scripts.
Change-Id: I75699008638f7e99b11210c7bb9e2e131fca7c9e
Also change benchmarkPurge to *not* use Benchmarker since it
doesn't use bench() or any other Benchmarker method.
Change-Id: I5d8ace161ecf1e05d69abf2f242e3684ffe48fa0
* bench(): Add support for setup function.
Demonstrated by converting bench_delete_truncate.php to use Benchmarker.
* bench(): Allow benchmarks to be named. Default remains (fn + args).
Useful for closures.
* Benchmarker: Support overriding the default count of 100.
Demonstrated in bench_delete_truncate.php to run 10x instead of
100x (previous: 1x).
Change-Id: Iac182eaf3053f5bf0e811cd23082f530629d8a4e
It's unreasonable to expect newbies to know that "bug 12345" means "Task T14345"
except where it doesn't, so let's just standardise on the real numbers.
This includes renaming fixBug20757.php to fixT22757.php for similar consistency.
Change-Id: If81a590d658fbd82c20c54ac47dfdc8856745ca3
For performance testing the lookup of links (e.g. LinkHolderArray),
allow resetting the LinkCache after every parse.
Change-Id: I75c2cad9a8cf1b41d192708773194f799673ce83
This is more consistent with LoadBalancer, modern, and inclusive
of master/master mysql, NDB cluster, and MariaDB galera cluster.
The old constant is an alias now.
Change-Id: I0b37299ecb439cc446ffbe8c341365d1eef45849
* Removed fallback code from Language, the associated data file
(Utf8Case.ser), and the code to generate that data file.
* Removed comment in LanguageFi that "mb_substr has a compatibility
function in GlobalFunctions.php".
* Removed check for mbstring in bench_utf8_title_check.php.
* In the tests for StringUtils::isUtf8():
* Removed separate test for the non-mbstring code path.
* Removed mentions of mbstring from function names and assertion
messages, since mb_check_encoding() is now always used.
* Also updated the comment in StringUtils::isUtf8() referring to
PHP 5.3, which is no longer supported in MediaWiki, to indicate
that the same issue also exists in old versions of HHVM. (If
we don't have to support 3.4 or older, then the function could
be deprecated and removed if desired.)
Follows-up 943563062f.
Change-Id: I55e5cd534b849c6ea06a7fadacbbf34a12d87ebe
--warmup makes a specified number of loops before measuring;
--loops repeats parsing given number of times
Change-Id: I18bff702fce1f97c4afc6c9fd618fdc1f3272732
Swapped some "$var type" to "type $var" or added missing types
before the $var. Changed some other types to match the more common
spelling. Makes beginning of some text in captial.
Also added some missing @param.
Change-Id: I727deec35a712de0f0c676cc87dfa661f1ee965b
Including a feature allowing templates from some other time to be used,
which allows comparative benchmarking before and after the migration of
a template to Lua.
Change-Id: I3bf3366a5ff589421f6c52e9186e0cea05e6cff3
- Removed double spaces
- Added space after if/switch/foreach
- Removed space on elseif
- Added space around parentheses
- Added newline at end of file
- Removed space before semicolon at end of line
Change-Id: Id40b87e04786c6111e6686d7f7eea1e588bdf37d
In a wikitech thread about benchmarking, Tim Starling has been running
benchmarks using CPU binding and raised priority. This patch copy paste
Tim recommendations so we do not forget about them.
Change-Id: Ic6f2803c005f70a2f0400f28fafc3c8d209e0667