Manual:BenchmarkParse.php/cs

Verze MediaWiki:
1.23
Category:MediaWiki code/cs#BenchmarkParse.php

Podrobnosti

benchmarkParse.php file is a maintenance script to benchmark how long it takes to parse a given title at an optionally specified timestamp.

Options/Arguments

Option/ArgumentDescriptionRequired?
titleThe name of the page to parsePožadované
--warmupRepeat the parse operation this number of times to warm the cacheVolitelné
--loopsNumber of times to repeat parse operation post-warmupVolitelné
--page-timeUse the version of the page which was current at the given timeVolitelné
--tpl-timeUse templates which were current at the given time (except that moves and deletes are not handled properly)Volitelné
--reset-linkcacheReset the LinkCache after every parse.Volitelné

Usage

php maintenance/run.php benchmarks/benchmarkParse title [ --warmup| --loops| --page-time| --tpl-time| --reset-linkcache ]
Terminal
Ve verzi MediaWiki 1.39.12 a starší musíte vyvolat skripty údržby pomocí php maintenance/scriptName.php namísto php maintenance/run.php scriptName.

Obama test

Colloquial name for a quick test of the parsing speed on Wikimedia servers, which uses the infamous Barack Obama article (which used to take 30+ seconds for parsing).

php /usr/local/apache/common/multiversion/MWScript.php maintenance/benchmarks/benchmarkParse.php \
--wiki=enwiki --loops=10 --warmup=10 "Barack Obama"

See also

Category:Performance development/cs Category:Maintenance scripts/cs Category:Benchmark maintenance scripts/cs
Category:Benchmark maintenance scripts/cs Category:Maintenance scripts/cs Category:MediaWiki code/cs Category:Performance development/cs