5 Star 3 Fork 1

ning/rest-bench

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

运行结果

ab -t5 -c100 url

  • golang-martini & gorm 10800
  • pure-php & hhvm 5000
  • pure-php & php-fpm & nginx 4000
  • yii2-db & hhvm 3000
  • yii & hhvm 2600
  • yii2-db & php-fpm 2100
  • tornado & SQLAlchemy 1800
  • doctrine-dbal & hhvm 1700
  • doctrine-dbal & php-fpm 1300
  • flask & SQLAlchemy & gunicorn 1200
  • yii & php-fpm 1100
  • yii2 & php-fpm 500
  • web.py & SQLAlchemy 400
  • yii2 & hhvm fail

测试sql

CREATE TABLE IF NOT EXISTS `user` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `username` varchar(40) NOT NULL,
  `password` varchar(40) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

insert into `user` values(1,'user1',md5('password1')),(2,'user2',md5('password2')),(3,'user3',md5('password3'));

martini-gorm

go get github.com/go-martini/martini
go get github.com/jinzhu/gorm
go get github.com/go-sql-driver/mysql

flask

pip install flask mysql-python SQLAlchemy Flask-SQLAlchemy

tornado

pip install tornado mysql-python SQLAlchemy

pure-php

nothing to configure

nginx

worker_processes  4;

fpm-fpm

pm.max_children = 150
pm.start_servers = 15
pm.min_spare_servers = 5
pm.max_spare_servers = 35

空文件

简介

比较各种restful语言/框架 展开 收起
PHP
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/maxspeed40k/rest-bench.git
git@gitee.com:maxspeed40k/rest-bench.git
maxspeed40k
rest-bench
rest-bench
master

搜索帮助

Cb406eda 1850385 E526c682 1850385