Nim
nim 2.2.4
#13
Overall rank
6.57×
Score
17/17
Problems covered
0
Did not finish
Best result per problem
| Problem | Rank | Code | Time | Peak mem |
|---|---|---|---|---|
| binarytrees | #5 of 19 | 2.nim | 560ms | 35.3MB |
| coro-prime-sieve | #6 of 19 | 6.nim | 731ms | 3.7MB |
| edigits | #19 of 19 | 1.nim | 28.61s | 5.4MB |
| fannkuch-redux | #10 of 19 | 1.nim | 2.05s | 2.3MB |
| fasta | #8 of 19 | 2.nim | 288ms | 2.3MB |
| http-server | #10 of 19 | 1.nim | 147ms | 72.3MB |
| json-serde | #9 of 19 | 2.nim | 737ms | 330.8MB |
| knucleotide | #5 of 18 | 1.nim | 675ms | 50.9MB |
| lru | #9 of 19 | 2.nim | 199ms | 2.6MB |
| mandelbrot | #3 of 19 | 1.nim | 214ms | 5.4MB |
| merkletrees | #4 of 19 | 1.nim | 298ms | 36.0MB |
| nbody | #5 of 19 | 2.nim | 151ms | 2.4MB |
| nsieve | #14 of 19 | 1.nim | 1.36s | 42.4MB |
| pidigits | #19 of 19 | 1.nim | 16.65s | 8.5MB |
| regex-redux | #7 of 18 | 1.nim | 930ms | 152.7MB |
| secp256k1 | #19 of 19 | 1.nim | 17.54s | 2.5MB |
| spectral-norm | #10 of 19 | 1.nim | 2.16s | 2.7MB |
Head to head
Nim is faster on 3 of 17 shared problems
| Problem | Nim | C++ | Faster by |
|---|---|---|---|
| binarytrees | 560ms | 649ms | Nim 1.16× |
| coro-prime-sieve | 731ms | 53ms | C++ 13.71× |
| edigits | 28.61s | 24ms | C++ 1187.32× |
| fannkuch-redux | 2.05s | 1.76s | C++ 1.16× |
| fasta | 288ms | 242ms | C++ 1.19× |
| http-server | 147ms | 27ms | C++ 5.39× |
| json-serde | 737ms | 327ms | C++ 2.25× |
| knucleotide | 675ms | 275ms | C++ 2.45× |
| lru | 199ms | 96ms | C++ 2.06× |
| mandelbrot | 214ms | 758ms | Nim 3.54× |
| merkletrees | 298ms | 300ms | Nim 1.01× |
| nbody | 151ms | 118ms | C++ 1.28× |
| nsieve | 1.36s | 276ms | C++ 4.92× |
| pidigits | 16.65s | 180ms | C++ 92.75× |
| regex-redux | 930ms | 658ms | C++ 1.41× |
| secp256k1 | 17.54s | 430ms | C++ 40.81× |
| spectral-norm | 2.16s | 1.32s | C++ 1.64× |
Over time
Overall score after each run on Apple M5 laptop. Lower is faster.
| Run | Nim |
|---|---|
| Oct 19, 2026 | 1.79× |
| Oct 20, 2026 | 6.57× |
| Oct 20, 2026 | 6.57× |
| Run | Version | Rank | Score | Change |
|---|---|---|---|---|
| Oct 20, 2026 | nim 2.2.4 | #13 | 6.57× | no change |
| Oct 20, 2026 | nim 2.2.4 | #13 | 6.57× | 266.7% slower |
| Oct 19, 2026 | nim 2.2.4 | #2 | 1.79× | – |