Manuel:benchmarkHooks.php
Appearance
Version de MediaWiki : | ≥ 1.19 |
Fichier MediaWiki : benchmarkHooks.php | |
---|---|
Emplacement : | maintenance/benchmarks/ |
Code source : | master • 1.42.3 • 1.41.4 • 1.39.10 |
Classes : | BenchmarkHooks |
Détails
Le fichier benchmarkHooks.php est un script de maintenance pour tester les accroches de MediaWiki.
Options et arguments
Ce script n'a pas d'option ni de paramètre.
Utilisation
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