Skip to content

use-case question: performance comparison #209

Answered by polakowo
RedLhek asked this question in Q&A
Discussion options

You must be logged in to vote

Answering your first question: vectorbt does diverse pre- and postprocessing on your inputs, parameters, and outputs. If it simply called the particular talib function, the vbt.talib method would yield the same performance. But what happens is this in order to broadcast inputs and parameters, convert outputs back to pandas, build multi-level columns, prepare mappers for indexing, etc. This all introduces an ms overhead. In fact, if you run the same on an input of length 1e6, talib function executes in 27.2 ms while vectorbt in 48 ms. The difference will narrow with the number of elements.

Remember that a major focus of vectorbt is in hyperparameter optimization through the construction of…

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@polakowo
Comment options

@shiosai
Comment options

@polakowo
Comment options

@RedLhek
Comment options

@polakowo
Comment options

Answer selected by polakowo
Comment options

You must be logged in to vote
1 reply
@polakowo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #205 on August 05, 2021 14:39.