معرفی شرکت ها


bigot-1.0.2


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Benchmarking library with Space and Time Complexity estimation
ویژگی مقدار
سیستم عامل -
نام فایل bigot-1.0.2
نام bigot
نسخه کتابخانه 1.0.2
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Arnaud de Saint Meloir
ایمیل نویسنده arnaud.desaintmeloir@gmail.com
آدرس صفحه اصلی https://github.com/arnaudsm/bigot
آدرس اینترنتی https://pypi.org/project/bigot/
مجوز -
![Example complexity graph](https://raw.githubusercontent.com/arnaudsm/bigot/master/images/graph.png) # Bigot Benchmarking library with Space and Time Complexity estimation. *Pull requests are welcome !* ## Installation `pip install bigot` ## Usage ### Provide a benchmark function with a single dimension parameter ```python def on(n): x = 10000000*"-"*int(n) sleep(0.001*n) import bigot print("Function has a space complexity of", bigot.Space(on2), "and a time complexity of", bigot.Time(on2)) ``` ``` Function has a space complexity of O(n^2) and a time complexity of O(n^2) ``` ### You can test our fancy options. See docstrings for reference. ```python bench = bigot.Time( on2, plot=True, duration=1, verbose=True, name="My fancy function" ) ``` ### And check the number of iterations, useful when comparing functions ```python print(bench.iterations, "iterations in", bench.duration, "seconds") ``` ``` 8 iterations in 8 seconds ``` ### You can also compare multiple functions ```python def on2(n): x = 10000000*"-"*int(n**2) sleep(0.001*n**2) print(bigot.Compare([on, on2]).space()) ``` ``` Name Duration Iterations Space complexity 0 On 1.0 49.0 O(n) 1 On2 1.0 8.0 O(n^2) ``` ## Testing `pytest .`


نیازمندی

مقدار نام
- memory-profiler
- pandas
- plotly


نحوه نصب


نصب پکیج whl bigot-1.0.2:

    pip install bigot-1.0.2.whl


نصب پکیج tar.gz bigot-1.0.2:

    pip install bigot-1.0.2.tar.gz