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?'); }
/** * @param string $dbType * @param int $cycles */ public function __construct($dbType, $cycles) { $this->database = DatabaseCreator::create($dbType); $this->cycles = $cycles; }