I am trying to compare speed and performance between Matlab and Julia. I am looking at a code that does topology optimization of a continuum structure subjected to a given load. The code I am looking at is the public code topopt88.m: https://www.topopt.mek.dtu.dk/Apps-and-software/Efficient-topology-optimization-in-MATLAB
Essentially it is an iterative algorithm where in every iteration a Ax=b system is solved (x=A\b), where A depends on the structural design (it is the finite element stiffness matrix) and it is updated in every iteration.
In Julia the same code runs slower than Matlab. I have done some code optimization in Julia, declaring types in function definitions, using functions as much as possible, avoiding global variables, and implementing other tips I found in the internet. But Julia is still slower than the same Matlab code (same in the sense of conceptual steps).
My question: since Matlab system solve "\" is multi threaded by default, is it true the same for Julia? If not, how to multi thread Julia's \ operator, or to get speed-ups from parallelization similarly?