All streams
Search
Write a publication
Pull to refresh
1
0
DOMA.ai @proptech

User

Send message

Возможно, мы скоро увидим тулы, которые будут силами LLM переводить с одного языка на другой ... Когда-нибудь допилят. И не будет этой проблемы и этого вопроса.

Ради интереса запустил ab тест на машине 2 ядра 4 гига, чистое node.js + express приложение и чистый nginx. Все уперлось в возможности машины для запуска ab. Результат ~2000 RPS. Есть у кого возможность запустить нормально на двух машинах?

ab -c 100 -n 50000 http://189.12.101.46/ -- для node.

Concurrency Level: 100 Time taken for tests: 24.093 seconds Complete requests: 50000 Failed requests: 0 Total transferred: 8850000 bytes HTML transferred: 100000 bytes Requests per second: 2075.30 [#/sec] (mean) Time per request: 48.186 [ms] (mean) Time per request: 0.482 [ms] (mean, across all concurrent requests) Transfer rate: 358.72 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 1 23 168.3 1 8112 Processing: 1 25 17.0 27 847 Waiting: 1 25 15.4 27 824 Total: 2 48 167.7 28 8136 Percentage of the requests served within a certain time (ms) 50% 28 66% 33 75% 35 80% 36 90% 40 95% 53 98% 233 99% 1030 100% 8136 (longest request)

ab -c 100 -n 50000 http://189.12.101.46/ -- для nginx.

Concurrency Level: 100 Time taken for tests: 24.914 seconds Complete requests: 50000 Failed requests: 0 Total transferred: 7900000 bytes HTML transferred: 100000 bytes Requests per second: 2006.92 [#/sec] (mean) Time per request: 49.828 [ms] (mean) Time per request: 0.498 [ms] (mean, across all concurrent requests) Transfer rate: 309.66 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 1 37 317.6 2 9740 Processing: 1 7 77.7 2 7522 Waiting: 1 7 76.3 2 7522 Total: 2 44 340.1 3 9839 Percentage of the requests served within a certain time (ms) 50% 3 66% 4 75% 4 80% 4 90% 6 95% 7 98% 1007 99% 1031 100% 9839 (longest request)

Nginx

server { listen 80; server_name localhost; location / { return 200 "OK"; } error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; } }

server.js

const express = require('express') const app = express() app.disable('x-powered-by') app.get('/', (req, res) => res.send('ok')) app.listen(80)

Information

Rating
Does not participate
Registered
Activity

Specialization

Fullstack Developer, Information Security Specialist
Lead
JavaScript
TypeScript
Node.js
React