|
@@ -9,6 +9,7 @@ Tests are available with NginX server, Swoole and Workerman platforms.
|
|
|
|
|
|
## Test Type Implementation Source Code
|
|
## Test Type Implementation Source Code
|
|
The tests are separated into 7 controllers:
|
|
The tests are separated into 7 controllers:
|
|
|
|
+### Ubiquity + PDO
|
|
- `Json` for JSON response
|
|
- `Json` for JSON response
|
|
* [JSON](app/controllers/Json.php)
|
|
* [JSON](app/controllers/Json.php)
|
|
- `Db` for database access with ORM (PDO Mysql)
|
|
- `Db` for database access with ORM (PDO Mysql)
|
|
@@ -20,23 +21,25 @@ The tests are separated into 7 controllers:
|
|
* [FORTUNES](app/controllers/Fortunes.php)
|
|
* [FORTUNES](app/controllers/Fortunes.php)
|
|
- `Plaintext` for plaintext response
|
|
- `Plaintext` for plaintext response
|
|
* [PLAINTEXT](app/controllers/Plaintext.php)
|
|
* [PLAINTEXT](app/controllers/Plaintext.php)
|
|
|
|
+### Ubiquity Swoole + Coroutine Mysql
|
|
- `SwooleDb` for database access with Swoole coroutine Mysql driver
|
|
- `SwooleDb` for database access with Swoole coroutine Mysql driver
|
|
* [SwooleDb](app/controllers/SwooleDb.php)
|
|
* [SwooleDb](app/controllers/SwooleDb.php)
|
|
|
|
+- `SwooleFortunes` used with Swoole
|
|
|
|
+ * [SwooleFortunes](app/controllers/SwooleFortunes.php)
|
|
|
|
+### Ubiquity Workerman + Mysqli
|
|
- `Workerman` with Mysqli driver
|
|
- `Workerman` with Mysqli driver
|
|
* [WorkerDb](app/controllers/WorkerDb.php)
|
|
* [WorkerDb](app/controllers/WorkerDb.php)
|
|
-- `AsyncFortunes` used with Swoole or Workerman
|
|
|
|
- * [AsyncFortunes](app/controllers/AsyncFortunes.php)
|
|
|
|
|
|
+- `WorkerFortunes` used with Workerman
|
|
|
|
+ * [WorkerFortunes](app/controllers/WorkerFortunes.php)
|
|
|
|
|
|
## Important Libraries
|
|
## Important Libraries
|
|
The tests were run with:
|
|
The tests were run with:
|
|
* [Ubiquity 2.3.*](https://ubiquity.kobject.net/)
|
|
* [Ubiquity 2.3.*](https://ubiquity.kobject.net/)
|
|
* [PHP Version 7.3.*](http://www.php.net/) with FPM and APC
|
|
* [PHP Version 7.3.*](http://www.php.net/) with FPM and APC
|
|
* [nginx 1.14](http://nginx.org/)
|
|
* [nginx 1.14](http://nginx.org/)
|
|
-* [Swoole](https://www.swoole.com/)
|
|
|
|
-* [Ubiquity-swoole](https://github.com/phpMv/ubiquity-swoole)
|
|
|
|
-* [Workerman](https://github.com/walkor/Workerman)
|
|
|
|
-* [Ubiquity-workerman](https://github.com/phpMv/ubiquity-workerman)
|
|
|
|
-* [MySQL 5.7](https://dev.mysql.com/)
|
|
|
|
|
|
+* [Swoole](https://www.swoole.com/), [Ubiquity-swoole](https://github.com/phpMv/ubiquity-swoole)
|
|
|
|
+* [Workerman](https://github.com/walkor/Workerman), [Ubiquity-workerman](https://github.com/phpMv/ubiquity-workerman)
|
|
|
|
+* [MySQL 8.0](https://dev.mysql.com/)
|
|
|
|
|
|
|
|
|
|
## Test URLs
|
|
## Test URLs
|
|
@@ -54,16 +57,22 @@ http://localhost:8080/Db
|
|
|
|
|
|
### QUERY
|
|
### QUERY
|
|
|
|
|
|
-http://localhost:8080/Db/query/
|
|
|
|
|
|
+- http://localhost:8080/Db/query/
|
|
|
|
+- http://localhost:8080/SwooleDb/query/
|
|
|
|
+- http://localhost:8080/WorkerDb/query/
|
|
|
|
|
|
### CACHED QUERY
|
|
### CACHED QUERY
|
|
|
|
|
|
-http://localhost:8080/Db/query/
|
|
|
|
|
|
+
|
|
|
|
|
|
### UPDATE
|
|
### UPDATE
|
|
|
|
|
|
-http://localhost:8080/Db/update/
|
|
|
|
|
|
+- http://localhost:8080/Db/update/
|
|
|
|
+- http://localhost:8080/SwooleDb/update/
|
|
|
|
+- http://localhost:8080/WorkerDb/update/
|
|
|
|
|
|
### FORTUNES
|
|
### FORTUNES
|
|
|
|
|
|
-http://localhost:8080/Fortunes
|
|
|
|
|
|
+- http://localhost:8080/Fortunes
|
|
|
|
+- http://localhost:8080/SwooleFortunes
|
|
|
|
+- http://localhost:8080/WorkerFortunes
|