Python beat Mojo at repeating a string. The job took 0.048 seconds in Python 3.11.2 and 0.136 in Mojo 1.2.0, a loss of nearly three to one, and it stayed that way in every session I ran. One row like that changes how you read the rest of a Mojo vs Python benchmark, because the rest of it looks so good.
The good row is a Collatz loop, the longest chain for any start below one million. Python took 9.49 seconds and Mojo took 0.48, so the loop ran 19.7 times faster (median of three runs each). My verdict after the whole session: move one hot loop to Mojo, leave everything else in Python, and do not assume a compiled language wins on strings. The box is an Intel N95 mini PC with 4 cores, the cheap kind, and every number below came from it.
Mojo is Modular’s language, a Python-looking syntax that compiles to native code. It carries real attention. The GitHub API showed 30,193 stars and 3,258 forks on the modular/modular repo on 25 November 2026 at 03:22 UTC. The Mojo 1.0 announcement thread on Hacker News stood at 432 points and 245 comments when I read it through the HN search API that same morning, and a second thread, “Mojo is now open source”, at 414 points and 98 comments. The licence field on GitHub reads NOASSERTION, which tells you nothing. The LICENSE file says Mojo is Apache-2.0 with LLVM exceptions, while parts of the MAX inference product fall under a separate MAX License.

The loop where Mojo ran away
I measured on 17 November, 01:22 to 01:30 UTC and again around 05:00, on an Intel N95 with 4 cores running Debian 12. Python was the stock 3.11.2. Mojo came from pip install mojo==1.2.0, and the PyPI page lists the wheels. Same algorithm in both files, no tricks.
Python ran the loop in 9.489, 9.076 and 9.655 seconds. Mojo 1.2.0 ran it in 0.442, 0.522 and 0.481. Even the slowest Mojo run beat the fastest Python run by 17.4 times. My guess at the cause is that Mojo’s Int is a plain machine integer and Python’s is an object. Mojo 1.1.0 gave 0.462 on one run, so the new release did not move the loop.
Four string jobs and one loss
Next, four jobs on a 100 MB string, best of five, in seconds. startswith with a 4-byte prefix, 100,000 calls: Python 0.0103, Mojo 0.00033, 31 times faster. endswith, same shape: Python 0.0103, Mojo 0.00064, 16 times faster. Padding “ab” out to 100 million bytes: Python 0.0446, Mojo 0.0197, 2.3 times faster. Repeating “ab” 50 million times: Python 0.0482, Mojo 0.136. Python won that one by two to three times in every session.
Bon, that is the line I would put on a slide. A compiled language’s string repeat lost to the built-in of an interpreter. The first two jobs call with constant inputs, so a compiler may skip work, and I read 31 times as a ceiling.
What the Mojo vs Python benchmark hides on a short script
Every number above is the loop or the job itself. The wall clock tells a different story, because mojo run compiles first and caches the result. For a 300,000 limit the loop took 0.14 seconds, yet the first run of the whole command took 5.6 seconds against 2.4 for the entire Python script. At the one-million limit the wall clock read 5.2 seconds on a first run, 1.6 on a repeat, and 8.9 for Python.
So a script that lives two seconds is slower under Mojo the first time and only about a second faster after that. Mojo’s mojo build wants a C compiler to link, and this box has none, so the timing here is mojo run, compile step included. Anybody with a compiler can strip that step out, and the gap would widen.
Did the 1.2.0 speed claims hold up?
The comparison above is between languages. This one is between releases: I installed Mojo 1.1.0 next to 1.2.0 and ran the same string script on both. The v1.2.0 release notes, dated 22 October, list three speed items.
Padding: the notes say up to 86 times faster. I got between 29 and 41 times across four runs, from about 0.71 seconds to 0.018 for 100 MB. That is real. Repetition: the notes say about 2 times faster on large strings, and at 50 million bytes I saw 0.109 to 0.140 seconds on 1.1.0 against 0.125 to 0.136 on 1.2.0. No gain. And startswith and endswith: a matching prefix was already fast on 1.1.0, but a non-matching one (baaa, 100 calls) took 0.93 seconds there and 0.00000014 on 1.2.0, while endswith went from 16.8 seconds to the same 0.00000014.
Two of the three reproduced here. Franchement, a decent hit rate for release-note numbers, and the repeat that never moved is the one Python still wins.
What else is in the 1.2.0 release notes
I counted the rest of the page myself: 82 bullets outside the highlights and documentation sections, 37 fixes, 28 library changes, 5 language additions, 4 tooling changes, 3 language changes, 3 removals and 2 performance items. The headline is match, a pattern-matching statement that will feel familiar if you write Python 3.10 or later. Two items will not. The async and await keywords are renamed __async and __await to mark async as unstable, with the old spellings working under a warning, and since 1.1 the walrus operator can only assign to a variable that already exists. If your services are asyncio from top to bottom, read that twice.
Python interop gets zero bullets. I tried the bridge with a loop of PythonObject additions, and Mojo aborted with symbol not found: PyRun_SimpleString, because the bridge loads libpython at run time and Debian 12’s stock python3 ships no shared library. Anything you plan to call from Python needs a Python built with one.
How stable is 1.x, and how fast does it move?
The v1.0.0 notes, dated 11 August, say: “During the 1.x timeframe, changes should mostly be additive. We may still make breaking changes, but they’ll be managed with care.” A small set of standard-library APIs carries a stable marker: the Deinitable, Movable, Copyable and ImplicitlyCopyable traits, plus Array, List, Span, String, Bool and Optional, and SIMD since 1.1.0.
Version 1.2.0 shows what “mostly” means for the rest. It renamed five things: StringSpan lost its mutable form, std.hashlib became std.hash, isspace() became is_ascii_whitespace(), FileDescriptor became RawFileDescriptor, and SIMD.from_bytes() takes an Endian parameter instead of a Bool. None of them carried a stable marker.
The releases come about every five weeks. Per the modular/modular releases API: Mojo 1.0.0 on 2026-08-11, 1.1.0 on 2026-09-17, 1.2.0 on 2026-10-22, which is 37 days and then 35. The 1.2.0 tag is max/v26.7.0, because the repo names the release “MAX 26.7 / Mojo 1.2.0”. If you pin, pin the wheel: mojo==1.2.0.
What I would move to Mojo first
One function, and only one that shows at the top of a profile. A numeric inner loop that runs for minutes is where 19.7 times pays for the compile step and the extra typing. I would not touch string handling, and I would keep the services in Python. The cheaper win usually sits in Python itself: in my Python 3.15 lazy imports post an AI command-line tool lost its time to imports, and no new language was needed.
To redo this, pip install mojo==1.2.0, write the Collatz loop once in each language, run python3 collatz.py 1000000 and mojo run collatz.mojo 1000000 (run the Mojo one twice and keep the second time), and put time in front of each. Expect different seconds on your CPU and a similar ratio.
At that 35-day pace the next release is due around 26 November. I will run the string repeat on it first.