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
Merge "Session: Improvements to encryption functionality"
[lhc/web/wiklou.git]
/
maintenance
/
benchmarks
/
bench_delete_truncate.php
diff --git
a/maintenance/benchmarks/bench_delete_truncate.php
b/maintenance/benchmarks/bench_delete_truncate.php
index
572c548
..
e9cdb58
100644
(file)
--- a/
maintenance/benchmarks/bench_delete_truncate.php
+++ b/
maintenance/benchmarks/bench_delete_truncate.php
@@
-31,7
+31,7
@@
require_once __DIR__ . '/Benchmarker.php';
class BenchmarkDeleteTruncate extends Benchmarker {
public function __construct() {
parent::__construct();
class BenchmarkDeleteTruncate extends Benchmarker {
public function __construct() {
parent::__construct();
- $this->
mDescription = "Benchmarks SQL DELETE vs SQL TRUNCATE."
;
+ $this->
addDescription( 'Benchmarks SQL DELETE vs SQL TRUNCATE.' )
;
}
public function execute() {
}
public function execute() {
@@
-74,9
+74,9
@@
class BenchmarkDeleteTruncate extends Benchmarker {
*/
private function insertData( $dbw ) {
$range = range( 0, 1024 );
*/
private function insertData( $dbw ) {
$range = range( 0, 1024 );
- $data =
array()
;
+ $data =
[]
;
foreach ( $range as $r ) {
foreach ( $range as $r ) {
- $data[] =
array( 'text' => $r )
;
+ $data[] =
[ 'text' => $r ]
;
}
$dbw->insert( 'test', $data, __METHOD__ );
}
}
$dbw->insert( 'test', $data, __METHOD__ );
}