Пример #1
0
 protected function configure()
 {
     $this->setName('benchmark:write')->setDescription('Run write benchmark')->addArgument('database', InputArgument::REQUIRED, 'What is database type (' . DatabaseCreator::getAvailableDatabasesAsString() . ') used for benchmark?')->addArgument('records', InputArgument::REQUIRED, 'How many records should benchmark use?');
 }
Пример #2
0
 /**
  * @param string $dbType
  * @param int    $cycles
  */
 public function __construct($dbType, $cycles)
 {
     $this->database = DatabaseCreator::create($dbType);
     $this->cycles = $cycles;
 }