Najova and other languages
How Najova compares with Python, JavaScript and Go: what each is good at, and how fast each ran the same tests on one PC.
Najova 1.0 isn't out yet. These numbers are from the build of 2026-11-24, measured on one PC. They will change as Najova is built, and other PCs give other numbers. The tests and how they were run are at the end of the page.
At a glance
Python, JavaScript and Go are mature languages used by millions of people. Najova is new and small. What it offers is one language for the whole of a project, with a lot built in.
| Najova | Python | JavaScript (Node) | Go | |
|---|---|---|---|---|
| Made for | Websites, APIs, games, bots and tools | Scripts, data, AI and servers | Web pages and servers | Servers, tools and the cloud |
| Web pages | Built in: webNaja | Frameworks such as Django or Flask | In the browser itself, and frameworks for servers | Templates in its standard library |
| A database | Built in: dataNaja | SQLite in its standard library | Packages | Packages |
| Many things at once | Najoutines, taking turns on one core | asyncio on one core, and threads | async and await on one core, and worker threads | Goroutines, spread over every core |
| Mistakes before running | Every name and call is checked first, with a fix suggested | Found when the line runs (type checkers are separate tools) | Found when the line runs (TypeScript is a separate language) | The compiler checks names and types |
| Handing out a program | naja build --exe | Extra tools such as PyInstaller | Single executable apps (newer Node) | go build |
| Packages | njim, a handful so far | PyPI, hundreds of thousands | npm, millions | Go modules, very many |
| Ready for | Trying out: 1.0 is being built | Real work | Real work | Real work |
Speed
The same small programs, written the usual way in each language. Times are from start to end, so they include starting up.
| Test | Najova | Python | Node | Go |
|---|---|---|---|---|
| Start, print one line, end | 24 ms | 30 ms | 39 ms | 23 ms |
| Function calls: fib of 30 | 196 ms | 123 ms | 55 ms | 24 ms |
| A loop: add up 1 to 30 million | 748 ms | 743 ms | 63 ms | 23 ms |
| Make and sort a million numbers | 395 ms | 404 ms | 321 ms | 73 ms |
| Build a text of 100,000 words | 982 ms | 56 ms | 55 ms | 23 ms |
| Memory to start | 5 MB | 5 MB | 54 MB | 5 MB |
Najova runs at about Python's speed for loops and sorting. Function calls are slower: fib took 1.6 times as long as Python.
Node and Go are much faster at plain number work. Node compiles hot code while it runs, and Go compiles ahead to machine code.
Najova starts fast and small: 5 MB to print a line, where Node uses 54 MB.
Building text one piece at a time is slow in Najova today: 17.5 times as long as Python, because each addition copies the whole text. This is on the list to fix before 1.0.
Najoutines
Many programs spend most of their time waiting: for a message, a timer, a web page. Najoutines let one script wait for many things at once. Here each language starts a number of tasks that each wait 0.1 seconds, then waits for all of them. A perfect result would be just over 100 ms.
| Tasks | Najova Najoutines | Go goroutines | Python asyncio | Node promises | Operating system threads |
|---|---|---|---|---|---|
| 1000 | 120 ms | 118 ms | 234 ms | 150 ms | 140 ms |
| 10000 | 126 ms | 137 ms | 280 ms | 149 ms | 454 ms |
| 100000 | 247 ms | 310 ms | 1364 ms | 184 ms | 4039 ms |
| 1000000 | 1498 ms | 945 ms | 14175 ms | 697 ms | Not tried |
Peak memory for the same runs:
| Tasks | Najova Najoutines | Go goroutines | Python asyncio | Node promises | Operating system threads |
|---|---|---|---|---|---|
| 1000 | 9 MB | 15 MB | 23 MB | 57 MB | 23 MB |
| 10000 | 22 MB | 92 MB | 37 MB | 65 MB | 167 MB |
| 100000 | 179 MB | 586 MB | 181 MB | 145 MB | 453 MB |
| 1000000 | 1646 MB | 1913 MB | 1599 MB | 668 MB | Not tried |
Memory for each waiting task, at 100,000 tasks: Najova 1.8 KB, Go 5.9 KB, Python 1.8 KB, Node 0.9 KB.
Passing values
One task puts a million numbers into a channel with no buffer, one at a time, and another takes them: each value is a hand-over between two tasks.
| Values | Najova channel | Go channel | Python asyncio.Queue | Threads and a channel (Rust) |
|---|---|---|---|---|
| 100000 | 40 ms | 30 ms | 638 ms | 54 ms |
| 1000000 | 251 ms | 165 ms | 5281 ms | 422 ms |
Work for the processor
Six jobs that only calculate (a recursive fib), done one after another, then all at once. The jobs are sized for each language, so compare each row with itself.
| One after another | All at once | |
|---|---|---|
| Najova (6 Najoutines) | 119 ms | 117 ms |
| Go (6 goroutines) | 828 ms | 188 ms |
What the numbers mean
Starting many tasks is cheap. A hundred thousand waiting Najoutines finished in 247 ms, close to Go and Node, 5.5 times faster than Python's asyncio and 16.4 times faster than one thread per task. At a million, Go and Node pull ahead.
They're small. At 100,000 tasks Najova used about a third of Go's memory, the same as Python and about twice Node's. A million waiting Najoutines fit in 1646 MB.
Hand-overs are fast. A million values passed through a channel in 251 ms: 1.5 times Go's time, and 21 times faster than Python's queue.
They don't use more cores. Najoutines take turns on one core, so six calculating at once take as long as six one after another. Go spread the same kind of work over the cores and finished 4.4 times faster. In return, Najoutines never change a value at the same moment, so a script needs no locks.
They're easy to keep in order. A
$najoutinesblock waits for everything started in it and stops the rest if one fails. Go does this with a WaitGroup or errgroup, and Python with a TaskGroup.
Pros and cons
What Najova does well
One language for pages, servers, data, bots and tools, with each part built in rather than added on.
It reads the same everywhere: a name after
$, values in brackets, blocks that end with their own name.Mistakes are found before anything runs, and each message says what to change.
Waiting for many things at once is cheap and safe.
It starts fast and small, and builds to plain HTML, a
.najbfile or one program.
Where it falls short today
It's new: few packages, few people to ask, and things will change before 1.0.
Heavy number work is many times slower than Node or Go, and Najoutines don't use more than one core.
Numbers are 64-bit floating point, as in JavaScript: whole numbers are exact only up to about 9 million billion.
Pick Python for data and AI, where its packages lead. Pick Go for a busy server that must use every core. Pick Najova to build a whole project in one language you can read at a glance.
How this was measured
On AMD Ryzen 5 7500F (6 cores, 12 threads), 31.5 GB memory, Windows 11 Pro. Versions: Najova dv1.0 (W5 3d), Python 3.11.9, Node 24.5.0, Go 1.27.4, Rust 1.100.0 (for the operating system threads). Each program run 3 times; the middle time (start to end, start-up included) and the middle peak memory (Windows peak working set).
Each test does the same work in every language and prints its answer, and the answers were checked to be the same. Python and Node build text the usual way for them, and Go uses its strings.Builder.