Looks like for what I measure, node is the worst, PHP the fastest and swift is the most memory conservative program. I didn't include Java, as I don't have the gigabyte compiler installed.
./gomap: Time: 2.20, Memory: 146 mb
./phpmap: Time: 1.27, Memory: 83 mb
./swiftmap: Time: 2.43, Memory: 55 mb
./nodemap: Time: 6.38, Memory: 350 mb
./pythonmap: Time: 3.73, Memory: 90 mb
./luajitmap: Time: 5.04, Memory: 144 mb
java: Time: 4.02, Memory: 352 mb
./rustmap: Time: 6.07, Memory: 103 mb
dotnet: Time: 3.33, Memory: 162 mb
"What did you measure?"
Basically gc performance. Find sources in one of my yesterday's post.
What it says :
Previously everyone thought lua-jit is the fastest scripting language around. Almost as fast as C. That's hardly the case now. Node the blazing fast lang is now the slowest and too much memory hog.
Compiled languages like Swift and Go aren't x10 faster than scripting languages, as it had been previously.
PHP isn't slow any more. And python, the de facto language for AI/ML, isn't faster than the others.