web-api-compare:比较 5 种语言的 REST API

时间:2024-07-14 02:49:52
【文件属性】:

文件名称:web-api-compare:比较 5 种语言的 REST API

文件大小:1.26MB

文件格式:ZIP

更新时间:2024-07-14 02:49:52

JavaScript

不同语言的简单 REST Web API。 test.sh执行一些简单的 curl 调用并返回结果。 实际输出应该有200、200、400、200。 要运行围攻测试,只需调用 sudo siege -b -t 20s -c 100 -T ' application/json ' " http://localhost:8080/sort POST <test.json " 超过 15 个连接似乎需要sudo ,否则可以省略。 在 Ubuntu 14.04 上设置环境 去 sudo apt-get install golang 节点 sudo apt-get install nodejs npm npm install express npm install body-parser Ruby sudo apt-get install ruby sudo apt-get install r


【文件预览】:
web-api-compare-master
----.gitignore(34B)
----test.sh(369B)
----test.json(34B)
----perl()
--------api.pl(573B)
----README.md(957B)
----python()
--------api.py(714B)
----ruby()
--------api.rb(406B)
----go()
--------api(4.78MB)
--------api.go(1KB)
----nodejs()
--------api.js(1KB)

网友评论