I see that you have tried to quote your code, but it’s not quite right. Please take a look at this post to see how to format code for discourse: PSA: how to quote code with backticks
You should also remember to interpolate variables when using BenchmarkTools: @benchmark test($m)
, instead of @benchmark test(m)
. It may not make a difference here, but in general, it does, and it removes the need to double-check if performance issues are due to the lack of interpolation.