Skip to content
Discussion options

You must be logged in to vote

Changing to concrete type makes performance in line with standard Vectors!

julia> @benchmark A*x
BenchmarkTools.Trial: 10000 samples with 1 evaluation per sample.
 Range (min … max):  222.049 μs …  2.496 ms  ┊ GC (min … max): 0.00% … 77.32%
 Time  (median):     243.695 μs              ┊ GC (median):    0.00%
 Time  (mean ± σ):   274.121 μs ± 98.256 μs  ┊ GC (mean ± σ):  6.85% ± 12.01%

  ▂██▆▆▆▅▄▄▃▂▂▂▁▁                                     ▁▁▂▂▁    ▂
  █████████████████▇▇▅▅▃▄▄▁▃▄▄▃▃▁▁▃▁▃▅▆▅▅▆▆▃▁▃▁▁▁▁▁▄▇█████████ █
  222 μs        Histogram: log(frequency) by time       656 μs <

 Memory estimate: 781.32 KiB, allocs estimate: 3.

Replies: 3 comments 2 replies

Comment options

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

Comment options

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

Comment options

You must be logged in to vote
0 replies
Answer selected by giordano
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants