Closed stla closed 1 year ago
Can you post a benchmark for a previous version where it was fast? I tested it with Julia 1.7.3 and Julia 1.9.1 and get the same (slow) speeds. This is expected, though, because the 1000x1000 matrix needs to be serialized and transferred to Julia, which takes time. The matrix inversion is already very optimized in R, so there isn't much room for improvement.
It took 85 seconds for me. This is not expected, so I guess you didn't get such slowness. Did you test on Windows? Previously it took a couple of seconds.
I get the following times with Julia 1.9.1:
Unit: milliseconds
expr min lq mean median uq max neval
mySolveR(x1) 921.4297 921.4297 950.5004 950.5004 979.571 979.571 2
mySolveJulia(x1) 23876.9331 23876.9331 23942.1428 23942.1428 24007.353 24007.353 2
And the following with Julia 1.7.3:
Unit: milliseconds
expr min lq mean median uq max neval
mySolveR(x1) 920.2987 920.2987 930.5349 930.5349 940.7711 940.7711 2
mySolveJulia(x1) 23300.3275 23300.3275 23321.9664 23321.9664 23343.6052 23343.6052 2
So I don't see a significant difference between the version. I am also using Windows.
Ok, that should be my laptop then.
Unit: seconds
expr min lq mean median uq
mySolveR(x1) 2.651178 2.651178 2.751108 2.751108 2.851038
mySolveJulia(x1) 97.121349 97.121349 101.392326 101.392326 105.663303
max neval
2.851038 2
105.663303 2
Hello,
The code below performs the inversion of a 1000x1000 matrix. It takes 85 seconds with Julia. Is there a problem with v1.9.1? With previous versions it was fast.