-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix/optimization Added: Caching (RedisCache or SimpleCache) The follow routes are now cached: "/" "/index" "/incidents/<incident_id>" "/history" "/availability" Debugging expanded: If the RedisCache is used, then the connection to the redis server is checked before creating an app instance, if the check fails, then the app will use SimpleDimple Benchmark test: $ flask --debug run --host=0.0.0.0 $ ab -n 3000 -c 100 http://127.0.0.0:5000/ Benchmarking 127.0.0.0 (be patient) Completed 300 requests Completed 600 requests Completed 900 requests Completed 1200 requests Completed 1500 requests Completed 1800 requests Completed 2100 requests Completed 2400 requests Completed 2700 requests Completed 3000 requests Finished 3000 requests Server Software: Werkzeug/3.0.1 Server Hostname: 127.0.0.0 Server Port: 5000 Document Path: / Document Length: 101946 bytes Concurrency Level: 100 Time taken for tests: 4.010 seconds Complete requests: 3000 Failed requests: 0 Total transferred: 306369000 bytes HTML transferred: 305838000 bytes Requests per second: 748.07 [#/sec] (mean) Time per request: 133.678 [ms] (mean) Time per request: 1.337 [ms] (mean, across all concurrent requests) Transfer rate: 74604.17 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 0 0.5 0 4 Processing: 24 127 12.5 126 158 Waiting: 9 115 12.5 114 146 Total: 28 127 12.1 126 158 Percentage of the requests served within a certain time (ms) 50% 126 66% 132 75% 135 80% 136 90% 139 95% 141 98% 143 99% 144 100% 158 (longest request) Reviewed-by: Olha Kashyrina Reviewed-by: Vladimir Vshivkov Reviewed-by: Vladimir Hasko <[email protected]> Reviewed-by: Ilia Bakhterev Reviewed-by: Anton Sidelnikov
- Loading branch information
1 parent
97eb869
commit fa3bf67
Showing
8 changed files
with
173 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters