Manual:BenchmarkParse.php/pt

Versão MediaWiki:
1.23
Category:MediaWiki code/pt#BenchmarkParse.php

Detalhes

O ficheiro benchmarkParse.php é um script de manutenção para referenciar quanto tempo se leva para analisar um determinado título em uma data e hora opcionalmente especificada.

Options/Arguments

Option/ArgumentDescriptionRequired?
titleThe name of the page to parseRequired
--warmupRepeat the parse operation this number of times to warm the cacheOptional
--loopsNumber of times to repeat parse operation post-warmupOptional
--page-timeUse the version of the page which was current at the given timeOptional
--tpl-timeUse templates which were current at the given time (except that moves and deletes are not handled properly)Optional
--reset-linkcacheReset the LinkCache after every parse.Optional

Usage

php maintenance/run.php benchmarks/benchmarkParse title [ --warmup| --loops| --page-time| --tpl-time| --reset-linkcache ]
Terminal
In MediaWiki version 1.39.12 and earlier, you must invoke maintenance scripts using php maintenance/scriptName.php instead of php maintenance/run.php scriptName.

Teste Obama

Nome coloquial para um teste rápido de velocidade de análise nos servidores da Wikimedia, que usa o artigo infame Barack Obama (que costumava levar mais de 30 segundos para análise).

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/pt Category:Maintenance scripts/pt Category:Benchmark maintenance scripts/pt
Category:Benchmark maintenance scripts/pt Category:Maintenance scripts/pt Category:MediaWiki code/pt Category:Performance development/pt