difference between backtesting time for vectorbt and backtrader #632
Mayuresh28-Mayuresh
started this conversation in
General
Replies: 1 comment
-
You probably included the compilation time of numba as well (which may take up to a minute). If you run the vbt code twice it should go much faster the second time. If you're interested in benchmarking, it's recommended to use the timeit package, which runs the same code over and over again and displays the mean execution time. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wrote the above code to test the backtesting time for the libraries backtrader and vectorbt. But the difference between them is significantly high . For backtrader it is : 0.98 secconds and for vectorbt it is 20.65 seconds. Is the test correct ? Is vectorbt slow ??
Beta Was this translation helpful? Give feedback.
All reactions