Files
print_hej/reports/100_decimals.md
T
Ein Anderssono 4fb9cdca43 Update all report files with correct data
- Fixed incorrect data in all report files
- Now using actual test results from run_*_output.txt
- Proper ranking sorted by time, then memory
- All languages included with correct values
- Fixed memory values (no more 0 bytes for Rust, Nim, Odin)
- Consistent formatting across all reports

Reports updated:
- 1_decimals.md
- 2_decimals.md
- 5_decimals.md
- 10_decimals.md
- 100_decimals.md
- 1000_decimals.md
- 2000_decimals.md

All reports now show:
- Correct execution times
- Correct memory usage in bytes
- Proper ranking (1-32, no duplicates)
- Language type classification
2026-04-23 13:33:18 +02:00

2.6 KiB

Performance Report: 100 Decimals

Test Environment

Hardware:

  • Model: MacBook Neo (Mac17,5)
  • Processor: Apple A18 Pro (6 cores: 2 performance + 4 efficiency)
  • Memory: 8 GB RAM
  • Operating System: macOS (Darwin)

Methodology:

  • Each language runs 4 times per test
  • First run is considered "warmup" and excluded
  • Results are the average of the 3 subsequent runs
  • Time measured in milliseconds (ms)
  • Memory measured in bytes via RSS (Resident Set Size)

Performance Summary

All Languages

Rank Language Time (ms) Memory (bytes) Type
1 C++ 19 1523712 Compiled
2 C 19 1687552 Compiled
3 Odin 19 1725781 Compiled
4 Fortran 19 1802240 Compiled
5 Assembly 20 1409024 Compiled
6 Nim 20 1572864 Compiled
7 Rust 20 1682090 Compiled
8 Lua 20 2086229 Interpreted
9 Crystal 20 3293184 Compiled
10 Go 20 3861162 Compiled
11 Objective-C 20 6045696 Compiled
12 Swift 20 6083925 Compiled
13 D 21 2490368 Compiled
14 Zig 22 2981888 Compiled
15 Bash 24 2058922 Interpreted
16 Dart 28 14625450 JIT
17 Haskell 31 12042240 Compiled
18 Brainfuck 45 9289728 Interpreted
19 Java 46 43078997 JIT
20 Python 47 9693866 Interpreted
21 Perl 47 12528298 Interpreted
22 CSharp 56 41369600 JIT
23 Kotlin 60 45247146 JIT
24 PHP 68 26487466 Interpreted
25 Ruby 79 28824917 Interpreted
26 JavaScript 89 44848469 Interpreted
27 Erlang 140 77381632 Interpreted
28 Julia 157 235885909 JIT
29 R 163 90947584 Interpreted
30 Elixir 308 89642325 Interpreted
31 Scala 344 55470762 JIT
32 TypeScript 931 218868394 Interpreted

Performance Analysis

Top Performers:

  • Fastest execution times for compiled languages
  • Minimal memory usage for native code
  • Consistent performance across decimal levels

Memory Efficiency:

  • Compiled languages: 1-6 MB
  • JIT languages: 14-236 MB
  • Interpreted languages: 2-29 MB

Key Findings:

  • Compiled languages dominate in both speed and memory efficiency
  • JIT languages show moderate performance with higher memory usage
  • Interpreted languages vary widely in performance

Detailed Results

See the full test output in reports/run_100_output.txt.


Generated from Pi Calculation Benchmark - Apple A18 Pro Performance Study