/**
  * @test
  */
 public function doBenchmark()
 {
     $dataset = 'ExtendedLoremIpsumDataset.v2.xml';
     $this->benchmarkRunner->addMessage("\n" . '==========================================================================================');
     $this->benchmarkRunner->addMessage('Edit benchmarks (Lorem donec = [[::]]; Lorem enim = #subobject; Lorem sit = #set/template) ');
     $this->benchmarkRunner->addMessage('------------------------------------------------------------------------------------------');
     $this->benchmarkRunner->addMessage("- Dataset: " . $dataset);
     $this->benchmarkRunner->addMessage("- MediaWiki: " . $this->benchmarkRunner->getMediaWikiVersion());
     $this->benchmarkRunner->addMessage("- Store: " . $this->benchmarkRunner->getQueryEngine());
     $this->benchmarkRunner->addMessage("- ShowMemoryUsage: " . var_export($this->showMemoryUsage, true));
     $this->benchmarkRunner->addMessage("- PageEditThreshold: " . $this->pageEditThreshold);
     $this->benchmarkRunner->addMessage('------------------------------------------------------------------------------------------');
     $this->benchmarkRunner->doImportDataset($dataset);
     $this->benchmarkRunner->addMessage('------------------------------------------------------------------------------------------');
     // Standard annotation
     $datasetFixture = Title::newFromText('Lorem donec');
     $this->assertTrue($datasetFixture->exists());
     $this->benchmarkRunner->editPageContent($datasetFixture, $this->pageEditThreshold);
     // Subobject annotation
     $datasetFixture = Title::newFromText('Lorem enim');
     $this->assertTrue($datasetFixture->exists());
     $this->benchmarkRunner->editPageContent($datasetFixture, $this->pageEditThreshold);
     // Template
     $datasetFixture = Title::newFromText('Lorem sit');
     $this->assertTrue($datasetFixture->exists());
     $this->benchmarkRunner->editPageContent($datasetFixture, $this->pageEditThreshold);
     // Queries
     $datasetFixture = Title::newFromText('Lorem tempor');
     $this->assertTrue($datasetFixture->exists());
     $this->benchmarkRunner->editPageContent($datasetFixture, $this->pageEditThreshold);
     $this->benchmarkRunner->addMessage('==========================================================================================');
     $this->benchmarkRunner->printMessages();
 }
 /**
  * @test
  */
 public function doBenchmark()
 {
     $dataset = $this->benchmarkRunner->getDefaultDataset();
     $datasetFixture = Title::newFromText('Lorem ipsum');
     $this->benchmarkRunner->addMessage("\n" . '==========================================================================================');
     $this->benchmarkRunner->addMessage('RebuildData benchmarks');
     $this->benchmarkRunner->addMessage('------------------------------------------------------------------------------------------');
     $this->benchmarkRunner->addMessage("- Dataset: " . $dataset);
     $this->benchmarkRunner->addMessage("- MediaWiki: " . $this->benchmarkRunner->getMediaWikiVersion());
     $this->benchmarkRunner->addMessage("- Store: " . $this->benchmarkRunner->getQueryEngine());
     $this->benchmarkRunner->addMessage("- ShowMemoryUsage: " . var_export($this->showMemoryUsage, true));
     $this->benchmarkRunner->addMessage("- ReuseDatasets: " . var_export($this->reuseDatasets, true));
     $this->benchmarkRunner->addMessage("- FullDelete: " . var_export($this->fullDelete, true));
     $this->benchmarkRunner->addMessage("- PageCopyThreshold: " . $this->pageCopyThreshold);
     $this->benchmarkRunner->addMessage("- RepetitionExecutionThreshold: " . $this->repetitionExecutionThreshold);
     $this->benchmarkRunner->addMessage('------------------------------------------------------------------------------------------');
     if (!$this->reuseDatasets) {
         $this->benchmarkRunner->addMessage("\n" . 'Data preparation benchmarks');
         $this->benchmarkRunner->doImportDataset($dataset);
         $this->benchmarkRunner->copyPageContent($datasetFixture, $this->pageCopyThreshold);
     }
     $this->assertTrue($datasetFixture->exists());
     $this->createMaintenanceBenchmarks('SMW\\Maintenance\\RebuildData');
     $this->benchmarkRunner->addMessage('==========================================================================================');
     $this->benchmarkRunner->printMessages();
 }
 /**
  * @test
  */
 public function doBenchmark()
 {
     $dataset = $this->benchmarkRunner->getDefaultDataset();
     $datasetFixture = Title::newFromText('Lorem ipsum');
     $this->benchmarkRunner->addMessage("\n" . '==========================================================================================');
     $this->benchmarkRunner->addMessage('Query result benchmarks (C = count, I = instance, S = serialization)');
     $this->benchmarkRunner->addMessage('------------------------------------------------------------------------------------------');
     $this->benchmarkRunner->addMessage("- Dataset: " . $dataset);
     $this->benchmarkRunner->addMessage("- MediaWiki: " . $this->benchmarkRunner->getMediaWikiVersion());
     $this->benchmarkRunner->addMessage("- Store: " . $this->benchmarkRunner->getQueryEngine());
     $this->benchmarkRunner->addMessage("- ShowMemoryUsage: " . var_export($this->showMemoryUsage, true));
     $this->benchmarkRunner->addMessage("- ReuseDatasets: " . var_export($this->reuseDatasets, true));
     $this->benchmarkRunner->addMessage("- QueryLimit: " . $this->queryLimit);
     $this->benchmarkRunner->addMessage("- QueryOffset: " . $this->queryOffset);
     $this->benchmarkRunner->addMessage("- PageCopyThreshold: " . $this->pageCopyThreshold);
     $this->benchmarkRunner->addMessage("- RepetitionExecutionThreshold: " . $this->repetitionExecutionThreshold);
     $this->benchmarkRunner->addMessage('------------------------------------------------------------------------------------------');
     if (!$this->reuseDatasets) {
         $this->benchmarkRunner->addMessage("\n" . 'Data preparation benchmarks');
         $this->benchmarkRunner->doImportDataset($dataset);
         $this->benchmarkRunner->copyPageContent($datasetFixture, $this->pageCopyThreshold);
     }
     $this->assertTrue($datasetFixture->exists());
     $this->createQueryBenchmarks($this->getQuerySetProvider());
     $this->benchmarkRunner->addMessage('==========================================================================================');
     $this->benchmarkRunner->printMessages();
 }
 /**
  * @test
  */
 public function doBenchmark()
 {
     $dataset = $this->benchmarkRunner->getDefaultDataset();
     $this->benchmarkRunner->addMessage("\n" . '==========================================================================================');
     $this->benchmarkRunner->addMessage('Dataset import benchmarks');
     $this->benchmarkRunner->addMessage('------------------------------------------------------------------------------------------');
     $this->benchmarkRunner->addMessage("- Dataset: " . $dataset);
     $this->benchmarkRunner->addMessage("- MediaWiki: " . $this->benchmarkRunner->getMediaWikiVersion());
     $this->benchmarkRunner->addMessage("- Store: " . $this->benchmarkRunner->getQueryEngine());
     $this->benchmarkRunner->addMessage("- ShowMemoryUsage: " . var_export($this->showMemoryUsage, true));
     $this->benchmarkRunner->addMessage("- ReuseDatasets: " . var_export($this->reuseDatasets, true));
     $this->benchmarkRunner->addMessage("- PageCopyThreshold: " . $this->pageCopyThreshold);
     $this->benchmarkRunner->addMessage('------------------------------------------------------------------------------------------');
     $this->benchmarkRunner->doImportDataset($dataset);
     $datasetFixture = Title::newFromText('Lorem ipsum');
     $this->assertTrue($datasetFixture->exists());
     $this->benchmarkRunner->copyPageContent($datasetFixture, $this->pageCopyThreshold);
     $this->benchmarkRunner->addMessage('==========================================================================================');
     $this->benchmarkRunner->printMessages();
 }