-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
56 lines (56 loc) · 3.11 KB
/
package.json
File metadata and controls
56 lines (56 loc) · 3.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{
"name": "http-vs-websockets-performance",
"version": "1.0.0",
"description": "This is an experiment to compare HTTP vs WebSockets performance using `Nodejs client` <==> `Python server`",
"scripts": {
"postinstall": "pip install -r requirements.txt",
"http-client": "babel-node src/clients/http/http_client.js",
"axios-client": "babel-node src/clients/http/axios_client.js",
"fetch-client": "babel-node src/clients/http/fetch_client.js",
"superagent-client": "babel-node src/clients/http/superagent_client.js",
"socketio-client": "babel-node src/clients/socketio/socketio_client.js",
"websocket-client": "babel-node src/clients/ws/websocket_client.js",
"ws-client": "babel-node src/clients/ws/ws_client.js",
"run-axios-clients": "yarn axios-client --port 5000 && yarn axios-client --port 5001 && yarn axios-client --port 5002 && yarn axios-client --port 5003",
"run-fetch-clients": "yarn fetch-client --port 5000 && yarn fetch-client --port 5001 && yarn fetch-client --port 5002 && yarn fetch-client --port 5003",
"run-http-clients": "yarn http-client --port 5000 && yarn http-client --port 5001 && yarn http-client --port 5002 && yarn http-client --port 5003",
"run-superagent-clients": "yarn superagent-client --port 5000 && yarn superagent-client --port 5001 && yarn superagent-client --port 5002 && yarn superagent-client --port 5003",
"run-all-http-clients": "yarn run-axios-clients && yarn run-fetch-clients && yarn run-superagent-clients && yarn run-http-clients",
"run-socketio-client": "yarn socketio-client --port 5004 && yarn socketio-client --port 5005",
"run-websocket-clients": "yarn websocket-client --port 5006 && yarn websocket-client --port 5007 && yarn websocket-client --port 5008 && yarn websocket-client --port 5009",
"run-ws-clients": "yarn ws-client --port 5006 && yarn ws-client --port 5007 && yarn ws-client --port 5008 && yarn ws-client --port 5009",
"run-all-websocket-clients": "yarn run-websocket-clients && yarn run-ws-clients",
"run-all": "yarn run-all-http-clients && yarn run-socketio-client && yarn run-all-websocket-clients"
},
"repository": {
"type": "git",
"url": "git+https://github.com/jscriptcoder/HTTP-vs-WebSockets-performance.git"
},
"author": "Francisco Ramos <francisco.ramos@researchlab.ai>",
"license": "ISC",
"bugs": {
"url": "https://github.com/jscriptcoder/HTTP-vs-WebSockets-performance/issues"
},
"homepage": "https://github.com/jscriptcoder/HTTP-vs-WebSockets-performance#readme",
"dependencies": {
"axios": "^0.20.0",
"chalk": "^4.1.0",
"node-fetch": "^2.6.1",
"socket.io-client": "^2.3.0",
"superagent": "^6.1.0",
"text-encoding": "^0.7.0",
"unique-names-generator": "^4.3.1",
"websocket": "^1.0.32",
"ws": "^7.3.1",
"yargs": "^16.0.3"
},
"devDependencies": {
"@babel/core": "^7.11.6",
"@babel/node": "^7.10.5",
"@babel/plugin-proposal-class-properties": "^7.10.4",
"@babel/plugin-transform-async-to-generator": "^7.10.4",
"@babel/plugin-transform-template-literals": "^7.10.5",
"@babel/polyfill": "^7.11.5",
"@babel/preset-env": "^7.11.5"
}
}