Nim
Nim compiles to C and then to native code: Python-like syntax, static types, and reference-counted memory management (ARC/ORC) by default since 2.0 instead of a tracing collector.
nim-lang.org ↗- Overall speed rank
- -
- no data yet
- Latest release
- 2.4
- 4 tracked releases since 2021
- Strongest on
- -
- Weakest on
- -
Performance by problem
Newest release (2.4), default build (nim c -d:release). The index is how many times slower this language is than the fastest entry on that problem (1.00× = fastest); rank is among all languages.
The first scheduled GitHub Actions run will publish real measurements here. Everything on this page is computed from raw iterations in data/.
Build settings
nim c -d:release default
Optimised C backend build with the default memory manager of the version (ORC from Nim 2.0, refc before).
mkdir -p {bin}.src && cp {harness}/harness.nim {bin}.src/ && cp {src}/main.nim {bin}.src/problem.nim && nim c -d:release --threads:on --hints:off --warnings:off --nimcache:{bin}.cache -o:{bin} {bin}.src/harness.nim{bin}nim c -d:danger
Also removes bounds, overflow and nil checks (unsafe: errors are no longer detected).
mkdir -p {bin}.src && cp {harness}/harness.nim {bin}.src/ && cp {src}/main.nim {bin}.src/problem.nim && nim c -d:danger --threads:on --hints:off --warnings:off --nimcache:{bin}.cache -o:{bin} {bin}.src/harness.nim{bin}Every release (default build)
The first scheduled GitHub Actions run will publish real measurements here. Everything on this page is computed from raw iterations in data/.
Speed across releases
Did Nim get faster? Every tracked release plotted at its release date, one line per build setting. Shows time, memory or binary size over all problems by default.
The first scheduled GitHub Actions run will publish real measurements here. Everything on this page is computed from raw iterations in data/.
Release highlights
- Nim 2.4 2026-10-27
- Nim 2.2 2024-10-02
- Nim 2.0 2023-08-01
- Nim 1.6 2021-10-19
Badge
Show this language's overall rank in your README or website:
[](https://stijnris.github.io/language-bench/languages/nim/)<a href="https://stijnris.github.io/language-bench/languages/nim/"><img src="https://stijnris.github.io/language-bench/badges/nim.svg" alt="Nim on language-bench"></a>