17 $dbw->dropTable(
'benchmark_perm_test' );
18 $permTable = $dbw->tableName(
'benchmark_perm_test',
'raw' );
19 $dbw->duplicateTableStructure(
20 $dbw->tableName(
'page',
'raw' ),
26 $dbw->dropTable(
'benchmark_temp_test' );
27 $tempTable = $dbw->tableName(
'benchmark_temp_test',
'raw' );
28 $dbw->duplicateTableStructure(
29 $dbw->tableName(
'page',
'raw' ),
36 'perm truncate' =>
static function () use ( $dbw, $fname, $permTable ) {
37 $dbw->query(
"TRUNCATE $permTable", $fname );
39 'perm delete' =>
static function () use ( $dbw, $fname, $permTable ) {
40 $dbw->query(
"DELETE FROM $permTable", $fname );
42 'temp truncate' =>
static function () use ( $dbw, $fname, $tempTable ) {
45 $dbw->query(
"TRUNCATE $tempTable", $fname );
47 'temp delete' =>
static function () use ( $dbw, $fname, $tempTable ) {
48 $dbw->query(
"DELETE FROM $tempTable", $fname );
52 $dbw->dropTable(
'benchmark_perm_test', $fname );
53 $dbw->dropTable(
'benchmark_temp_test', $fname );