Jump to content

Handbuch:benchmarkParse.php

From mediawiki.org
This page is a translated version of the page Manual:BenchmarkParse.php and the translation is 65% complete.
MediaWiki Version:
1.23

Details

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

Optionen/Argumente

Option/Argument Beschreibung Notwendig?
title Der Name der Seite, die geparst werden soll Notwendig
--warmup Repeat the parse operation this number of times to warm the cache Optional
--loops Number of times to repeat parse operation post-warmup Optional
--page-time Use the version of the page which was current at the given time Optional
--tpl-time Use templates which were current at the given time (except that moves and deletes are not handled properly) Optional
--reset-linkcache Setzt den LinkCache nach jeden Parse zurück. Optional

Verwendung

php maintenance/benchmarks/benchmarkParse.php title [ --warmup| --loops| --page-time| --tpl-time| --reset-linkcache ]


Terminal

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"

Siehe auch