This app is a PoC of performance issues in bristol
library.
It is an express
server that contains 2 endpoints:
/fast
- simply printsok
,/slow
- it contains 30bristol.info
calls and printsok
.
npm install
- Run it with
node index.js
. - Check fast endpoint:
ab -n 2000 -c 200 "http://127.0.0.1:3000/fast"
- Check slow endpoint:
ab -n 2000 -c 200 "http://127.0.0.1:3000/slow"
For /fast
endpoint:
Requests per second: 2557.85 [#/sec] (mean)
Percentage of the requests served within a certain time (ms)
50% 77
66% 80
75% 81
80% 82
90% 84
95% 85
98% 86
99% 88
100% 190 (longest request)
For /slow
endpoint:
Requests per second: 149.55 [#/sec] (mean)
Percentage of the requests served within a certain time (ms)
50% 1314
66% 1346
75% 1378
80% 1391
90% 1439
95% 1500
98% 1518
99% 1525
100% 1531 (longest request)