facioquo / stock-indicators-python

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

feat: Improve performance of creating results #253

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     78.9982  227.6387  99.5761  48.3581  80.9630  13.4671       1;1  10.0426       9           1
------------------------------------------------------------------------------------------------------------------------------

# After
----------------------------------------------------- benchmark: 1 tests ----------------------------------------------------
Name (time in ms)                     Min       Max     Mean   StdDev   Median     IQR  Outliers      OPS  Rounds  Iterations
-----------------------------------------------------------------------------------------------------------------------------
test_benchmark_hurst_longlong     72.5398  109.0417  78.2179  11.7578  73.4388  0.6215       1;2  12.7848      10           1
-----------------------------------------------------------------------------------------------------------------------------

Checklist

DaveSkender commented 2 years ago

Needs review of widespread test failure. Missing the right DLL?

LeeDongGeon1996 commented 2 years ago

Oh, I was wrong. It's not possible.