SpringBoot Laravel(artisan serve) MIXPHP简单性能测试

测试条件:

CPU: 2C 4T 2.8GHZ

MEM: 8G

DISK: 512GB SSD

OS: OS X 10.11.6

测试指令

ab -n 2000 -c 10

测试表现

MIXPHP RPS:8K

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Server Software:        swoole-http-server
Server Hostname: 127.0.0.1
Server Port: 9501

Document Path: /
Document Length: 12 bytes

Concurrency Level: 10
Time taken for tests: 0.223 seconds
Complete requests: 2000
Failed requests: 0
Total transferred: 348000 bytes
HTML transferred: 24000 bytes
Requests per second: 8969.49 [#/sec] (mean)
Time per request: 1.115 [ms] (mean)
Time per request: 0.111 [ms] (mean, across all concurrent requests)
Transfer rate: 1524.11 [Kbytes/sec] received

Laravel(使用php artisan serve)

RPS: 22…

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Server Software:
Server Hostname: 127.0.0.1
Server Port: 8000

Document Path: /t
Document Length: 11 bytes

Concurrency Level: 10
Time taken for tests: 72.551 seconds
Complete requests: 2000
Failed requests: 0
Total transferred: 2060448 bytes
HTML transferred: 22000 bytes
Requests per second: 27.57 [#/sec] (mean)
Time per request: 362.757 [ms] (mean)
Time per request: 36.276 [ms] (mean, across all concurrent requests)
Transfer rate: 27.73 [Kbytes/sec] received

SpringBoot

RPS 1900

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Server Software:
Server Hostname: 127.0.0.1
Server Port: 8080

Document Path: /hello
Document Length: 11 bytes

Concurrency Level: 10
Time taken for tests: 1.050 seconds
Complete requests: 2000
Failed requests: 0
Total transferred: 288000 bytes
HTML transferred: 22000 bytes
Requests per second: 1904.65 [#/sec] (mean)
Time per request: 5.250 [ms] (mean)
Time per request: 0.525 [ms] (mean, across all concurrent requests)
Transfer rate: 267.84 [Kbytes/sec] received
原文地址:https://www.cnblogs.com/xiaoerli520/p/9624099.html