Example #1
0
 /**
  * Generate an XML dump before benchmarking the report
  * generation command.
  */
 public static function generateDump()
 {
     // instantiate the benchmark class (this) so that we can
     // run a command.
     $case = new self();
     $case->runCommand('console.command.run', ['path' => self::getFunctionalBenchmarkPath(), '--dump-file' => self::getWorkspacePath() . '/dump.xml']);
 }
Example #2
0
 public static function createResults()
 {
     for ($i = 0; $i < 10; $i++) {
         // instantiate the benchmark class (this) so that we can
         // run a command.
         $case = new self();
         $case->runCommand('console.command.run', ['path' => self::getFunctionalBenchmarkPath(), '--executor' => 'debug', '--iterations' => [100], '--store' => true, '--progress' => 'none']);
     }
 }