Skip to content

Commit 9001e48

Browse files
authored
Update for Simps (#5676)
* add hook * Update benchmark_config.json * Update README.md
1 parent 19b136f commit 9001e48

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

frameworks/PHP/simps/README.md

+2-6
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
[![Latest Version](https://img.shields.io/packagist/v/simple-swoole/simps.svg)](https://packagist.org/packages/simple-swoole/simps)
99
[![Simps Doc](https://img.shields.io/badge/docs-passing-blue.svg)](https://doc.simps.io)
1010
[![Contact Simps Team](https://img.shields.io/badge/[email protected]?style=flat)](mailto:[email protected])
11-
[![Php Version](https://img.shields.io/badge/php-%3E=7.2-brightgreen.svg)](https://www.php.net)
11+
[![Php Version](https://img.shields.io/badge/php-%3E=7.1-brightgreen.svg)](https://www.php.net)
1212
[![Swoole Version](https://img.shields.io/badge/swoole-%3E=4.4.0-brightgreen.svg)](https://github.com/swoole/swoole-src)
1313

1414
# Simps Benchmarking Test
@@ -34,10 +34,6 @@ The tests were run with:
3434

3535
http://localhost:8080/json
3636

37-
### PLAINTEXT
38-
39-
http://localhost:8080/plaintext
40-
4137
### DB
4238

4339
http://localhost:8080/db
@@ -52,4 +48,4 @@ http://localhost:8080/fortunes
5248

5349
### QUERY
5450

55-
http://localhost:8080/queries/
51+
http://localhost:8080/queries/

frameworks/PHP/simps/benchmark_config.json

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
{
55
"default": {
66
"json_url": "/json",
7-
"plaintext_url": "/plaintext",
87
"db_url": "/db",
98
"fortune_url": "/fortunes",
109
"update_url": "/updates/",

frameworks/PHP/simps/sbin/simps.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
#!/usr/bin/env php
22
<?php
3-
! defined('BASE_PATH') && define('BASE_PATH', dirname(__DIR__, 1));
4-
! defined('CONFIG_PATH') && define('CONFIG_PATH', dirname(__DIR__) . '/config/');
3+
!defined('BASE_PATH') && define('BASE_PATH', dirname(__DIR__, 1));
4+
!defined('CONFIG_PATH') && define('CONFIG_PATH', dirname(__DIR__) . '/config/');
5+
!defined('SWOOLE_HOOK_FLAGS') && define('SWOOLE_HOOK_FLAGS', SWOOLE_HOOK_ALL);
56

67
require BASE_PATH . '/vendor/autoload.php';
78

9+
\Swoole\Runtime::enableCoroutine(SWOOLE_HOOK_FLAGS);
810
Simps\Application::run();

0 commit comments

Comments
 (0)