15 $dbw->dropTable(
'benchmark_perm_test' );
16 $permTable = $dbw->tableName(
'benchmark_perm_test',
'unquoted' );
17 $dbw->duplicateTableStructure(
18 $dbw->tableName(
'page',
'unquoted' ),
24 $dbw->dropTable(
'benchmark_temp_test' );
25 $tempTable = $dbw->tableName(
'benchmark_temp_test',
'unquoted' );
26 $dbw->duplicateTableStructure(
27 $dbw->tableName(
'page',
'unquoted' ),
34 'perm truncate' =>
static function () use ( $dbw, $fname, $permTable ) {
35 $dbw->query(
"TRUNCATE $permTable", $fname );
37 'perm delete' =>
static function () use ( $dbw, $fname, $permTable ) {
38 $dbw->query(
"DELETE FROM $permTable", $fname );
40 'temp truncate' =>
static function () use ( $dbw, $fname, $tempTable ) {
43 $dbw->query(
"TRUNCATE $tempTable", $fname );
45 'temp delete' =>
static function () use ( $dbw, $fname, $tempTable ) {
46 $dbw->query(
"DELETE FROM $tempTable", $fname );
50 $dbw->dropTable(
'benchmark_perm_test', $fname );
51 $dbw->dropTable(
'benchmark_temp_test', $fname );