dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Create BagOStuff implementation to talk to RestBase
[lhc/web/wiklou.git]
/
maintenance
/
benchmarks
/
benchmarkHooks.php
diff --git
a/maintenance/benchmarks/benchmarkHooks.php
b/maintenance/benchmarks/benchmarkHooks.php
index
3106f89
..
c59ce0d
100644
(file)
--- a/
maintenance/benchmarks/benchmarkHooks.php
+++ b/
maintenance/benchmarks/benchmarkHooks.php
@@
-36,23
+36,23
@@
class BenchmarkHooks extends Benchmarker {
public function execute() {
global $wgHooks;
public function execute() {
global $wgHooks;
- $wgHooks['Test'] =
array()
;
+ $wgHooks['Test'] =
[]
;
$time = $this->benchHooks();
$this->output( 'Empty hook: ' . $time . "\n" );
$time = $this->benchHooks();
$this->output( 'Empty hook: ' . $time . "\n" );
- $wgHooks['Test'][] =
array( $this, 'test' )
;
+ $wgHooks['Test'][] =
[ $this, 'test' ]
;
$time = $this->benchHooks();
$this->output( 'Loaded (one) hook: ' . $time . "\n" );
for ( $i = 0; $i < 9; $i++ ) {
$time = $this->benchHooks();
$this->output( 'Loaded (one) hook: ' . $time . "\n" );
for ( $i = 0; $i < 9; $i++ ) {
- $wgHooks['Test'][] =
array( $this, 'test' )
;
+ $wgHooks['Test'][] =
[ $this, 'test' ]
;
}
$time = $this->benchHooks();
$this->output( 'Loaded (ten) hook: ' . $time . "\n" );
for ( $i = 0; $i < 90; $i++ ) {
}
$time = $this->benchHooks();
$this->output( 'Loaded (ten) hook: ' . $time . "\n" );
for ( $i = 0; $i < 90; $i++ ) {
- $wgHooks['Test'][] =
array( $this, 'test' )
;
+ $wgHooks['Test'][] =
[ $this, 'test' ]
;
}
$time = $this->benchHooks();
$this->output( 'Loaded (one hundred) hook: ' . $time . "\n" );
}
$time = $this->benchHooks();
$this->output( 'Loaded (one hundred) hook: ' . $time . "\n" );