6require_once __DIR__ .
'/../includes/Benchmarker.php';
15 parent::__construct();
21 $GLOBALS[
'wgBenchmarkGlobalVarConfigTest'] =
'value';
22 $GLOBALS[
'wgBenchmarkGlobalVarConfigTestNull'] =
null;
25 'GlobalVarConfig::get (hit)' => [
26 'function' =>
static function () use ( $config ) {
27 $config->get(
'BenchmarkGlobalVarConfigTest' );
30 'GlobalVarConfig::get (null)' => [
31 'function' =>
static function () use ( $config ) {
32 $config->get(
'BenchmarkGlobalVarConfigTestNull' );
37 $this->
bench( $benches );
42require_once RUN_MAINTENANCE_IF_MAIN;
Benchmark GlobalVarConfig::get()
execute()
Do the actual work.
__construct()
Default constructor.
Base class for benchmark scripts.
addDescription( $text)
Set the description text.