python profiling for the tesseract operator
aatmanvaidya opened this issue · comments
do a python profiling for the tesseract operator
- look at the memory usage
- load testing
how does memory usage (RAM) go up?
profiling
- https://docs.python.org/3/library/profile.html
- https://realpython.com/python-profiling/
- https://roman.pt/posts/python-performance-profiling/
- https://www.turing.com/kb/profiling-python-code
- https://betterprogramming.pub/a-comprehensive-guide-to-profiling-python-programs-f8b7db772e6
- how to understand the output of
cProfile
? flame-graph
- https://pyflame.readthedocs.io/en/latest/usage.html
memory profiling
- https://docs.python.org/3/library/tracemalloc.html
- https://github.com/pythonprofilers/memory_profiler
- https://stackoverflow.com/questions/552744/how-do-i-profile-memory-usage-in-python
load-testing
https://locust.io/ - for load testing in python
some helpful links
size of tesseract is somewhere between 5-20 MB.
it must also depend on what model you include, right? single language, multilanguage?
I also supposed models are of different sizes depending on their training corpus size?
it must also depend on what model you include, right? single language, multilanguage? I also supposed models are of different sizes depending on their training corpus size?
yes, I am still figuring it out, I will add more details to the above comment with sources