Skip to content

VitaliySavin/Generators

Repository files navigation

Generators - test task

N|Solid

Instructions

  1. Create table in your database and execute INSERT SQL query:
CREATE TABLE IF NOT EXISTS `test` (
  `sum` varchar(500) DEFAULT NULL,
  `count_fib` smallint(6) DEFAULT NULL,
  `count_prime` smallint(6) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

INSERT INTO test SET sum = '0', count_fib = 0, count_prime = 0;
  1. Generate autoload files and install vendors:
$ composer install
  1. Set DB connection params in Constants.php
  2. Run in console
$ php runMulti.php

or run with optional params limit and delay, for example

$ php runMulti.php 2000 100 5000 200

where 2000 - prime limit, 100 - prime delay, 5000 - fib limit, 200 -fib delay

or run (will be run with default limit and delay (2000 100 5000 100))

$ ./runMulti.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published