Refactored swagger_server/main.py into beacon_controller.main
Improved README.md
Here's the output of a concurrency profiling tool. It's worth noting that the default flask server just failed entirely under this stress.
lance@Lance-PC:~$ ab -n 30000 -c 100 http://localhost:8080/beacon/biothings-explorer/statements?s=HGNC:13733
This is ApacheBench, Version 2.3 <$Revision: 1528965 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Server Software: TornadoServer/5.1.1
Server Hostname: localhost
Server Port: 8080
Document Path: /beacon/biothings-explorer/statements?s=HGNC:13733
Document Length: 10042 bytes
Concurrency Level: 100
Time taken for tests: 508.669 seconds
Complete requests: 30000
Failed requests: 0
Total transferred: 304350000 bytes
HTML transferred: 301260000 bytes
Requests per second: 58.98 [#/sec] (mean)
Time per request: 1695.564 [ms] (mean)
Time per request: 16.956 [ms] (mean, across all concurrent requests)
Transfer rate: 584.30 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.1 0 4
Processing: 17 1693 137.6 1679 8550
Waiting: 16 1693 137.6 1678 8550
Total: 20 1693 137.6 1679 8554
Percentage of the requests served within a certain time (ms)
50% 1679
66% 1702
75% 1727
80% 1738
90% 1753
95% 1760
98% 1773
99% 1782
100% 8554 (longest request)
Here's the output of a concurrency profiling tool. It's worth noting that the default flask server just failed entirely under this stress.