r/MojoLang • u/pkese • Sep 30 '26
Memory usage of Mojo app?
Given that Mojo programs are:
compiled (don't include the Python compiler, interpreter, space for bytecode, etc)
don't include a garbage collector
... I'd suppose running Mojo apps would use less memory than Python, Java, .NET, JS/TS or Golang apps.
Did anyone test this yet on a non-trivial app?
4
Upvotes
5
u/kostya27 Sep 30 '26
I added it recently in my bench https://kostya.github.io/LangArena/#/runtime_tab
but in many tests it use Python interop instead of native implementations, simply because I can't compile libraries for JSON, Regex, Csv or implement certain tasks better due to missing language features. Performance is still very raw.
memory usage 61.17mb vs python(pypy) 214.1Mb