| MediaWiki version: | ≥ 1.19 |
| MediaWiki file: benchmarkHooks.php | |
|---|---|
| Location: | maintenance/benchmarks/ |
| Source code: | master • 1.40.0 • 1.39.4 • 1.35.11 |
| Classes: | BenchmarkHooks |
Details
benchmarkHooks.php file is a maintenance script to benchmark MediaWiki hooks.
Options/Arguments
This script does not take any options or arguments.
Usage
php maintenance/benchmarks/benchmarkHooks.php
Terminal
$ php maintenance/benchmarks/benchmarkHooks.php
Running PHP version 7.4.27 (arm64) on Darwin 21.2.0 Darwin Kernel Version 21.2.0: Sun Nov 28 20:29:10 PST 2021; root:xnu-8019.61.5~1/RELEASE_ARM64_T8101
Loaded 0 hooks
count: 10
rate: 208671.8/s
total: 0.05ms
mean: 0.00ms
max: 0.01ms
stddev: 0.00ms
Current memory usage: 16 MB
Peak memory usage: 16 MB
Loaded 1 hook
count: 10
rate: 153637.5/s
total: 0.07ms
mean: 0.01ms
max: 0.01ms
stddev: 0.00ms
Current memory usage: 18 MB
Peak memory usage: 20 MB
Loaded 10 hooks
count: 10
rate: 46707.2/s
total: 0.21ms
mean: 0.02ms
max: 0.02ms
stddev: 0.00ms
Current memory usage: 18 MB
Peak memory usage: 20 MB
Loaded 100 hooks
count: 10
rate: 5794.0/s
total: 1.73ms
mean: 0.17ms
max: 0.18ms
stddev: 0.00ms
Current memory usage: 18 MB
Peak memory usage: 20 MB
See also
- Manual:BenchmarkParse.php
- Manual:BenchmarkPurge.php
- wikitech:Performance/Guides/Measure backend performance#Benchmarking
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.