I'm not an expert in computational performance, but I've been comparing a logistic regression from scratch between Python and Kotlin (no linear algebra libraries). It's interesting that Kotlin can train in a few seconds, while Python can take many, many minutes.