Closed nilshg closed 3 years ago
You're using it correctly. Some amount of slowdown is expected because of the matrix operations involved. Having said that, there was a rather egregious oversight in the code. Fixing this brought the runtime in your example down about 40% on my machine. I'll tag a new version once CI clears; look out for 1.4.2.
Awesome, thank you so much - I didn't anticipate this running as fast as the simple univariate case of course, but great to see that the gap can be narrowed.
FYI, the PR for the new version is here: https://github.com/JuliaRegistries/General/pull/41275. Once this gets merged, 1.4.2 should be available.
This might be a usage / "am I doing something wrong" question rather than an actual issue, but I'm trying to use
ARCHModels
in Monte Carlo pricing of some exotic derivatives, and am seeing quite a performance gap between simulating returns from a univariate compared to a multivariate model. An example:gives
11.400 μs (8 allocations: 1.39 KiB)
on my machine. By comparison:gives
1.608 ms (22932 allocations: 5.13 MiB)
so more than a 100-time slowdown. Is this expected or am I doing something wrong here?