- MacBook Pro (Retina, 13-inch, Early 2015)
- 处理器 2.7 GHz Intel Core i5
- 内存 8 GB 1867 MHz DDR3
- go版本 go version go1.11.4 darwin/amd64
- PHP 7.1.1 (cli) (built: Jan 20 2017 07:19:55) ( NTS )
- Swoole 1.9.10
https://github.com/kphcdr/golandvsswoole
- ab -n 2000 -c 2000 http://127.0.0.1:9001/
- 等5分钟
- ab -n 2000 -c 2000 http://127.0.0.1:9002/
- 重复十次
- 十次测试中,swoole快的情况有8次
- swoole快的情况下,Requests per second大概多出200左右
- golang快的情况下,Requests per second大概多出500左右
学JAVA去吧!!!