facioquo / stock-indicators-python

Stock Indicators for Python. Maintained by @LeeDongGeon1996
https://python.StockIndicators.dev
Apache License 2.0
221 stars 37 forks source link

feat: Improve performance of creating results #208

Closed LeeDongGeon1996 closed 2 years ago

LeeDongGeon1996 commented 2 years ago

Description

Benchmarks

# Before
------------------------------------------------------ benchmark: 1 tests ------------------------------------------------------
Name (time in ms)                      Min       Max      Mean   StdDev    Median      IQR  Outliers     OPS  Rounds  Iterations
--------------------------------------------------------------------------------------------------------------------------------
test_benchmark_hurst_longlong     274.3428  372.7476  294.6430  43.6681  275.1750  25.8243       1;1  3.3939       5           1
--------------------------------------------------------------------------------------------------------------------------------

# After
------------------------------------------------------ benchmark: 1 tests ------------------------------------------------------
Name (time in ms)                      Min       Max      Mean   StdDev    Median      IQR  Outliers     OPS  Rounds  Iterations
--------------------------------------------------------------------------------------------------------------------------------
test_benchmark_hurst_longlong     238.4862  333.4627  258.1899  42.0830  239.4949  24.3659       1;1  3.8731       5           1
--------------------------------------------------------------------------------------------------------------------------------

Checklist