Manual:benchmarkParse.php

From Linux Web Expert

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>">
<translate> ≥</translate> 1.23
<translate> MediaWiki version:</translate>

詳細

benchmarkParse.php ファイルは、指定されたページ名の構文解析 (タイムスタンプも指定可能) に要する時間のベンチマークを行う保守スクリプトです。

オプション/引数

オプション/引数 説明 必須かどうか
title The name of the page to parse <translate> Required</translate>
--warmup Repeat the parse operation this number of times to warm the cache <translate> Optional</translate>
--loops Number of times to repeat parse operation post-warmup <translate> Optional</translate>
--page-time Use the version of the page which was current at the given time <translate> Optional</translate>
--tpl-time Use templates which were current at the given time (except that moves and deletes are not handled properly) <translate> Optional</translate>
--reset-linkcache Reset the LinkCache after every parse. <translate> Optional</translate>

使用法

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


Terminal

オバマ テスト

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"

関連項目