Files
print_hej/reports/1000_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: 1000 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 Assembly 20 1409024 Compiled
2 C 20 1736704 Compiled
3 Go 20 4248917 Compiled
4 Objective-C 20 6111232 Compiled
5 Rust 21 1884160 Compiled
6 Nim 21 1982464 Compiled
7 Zig 21 2981888 Compiled
8 D 21 3517098 Compiled
9 C++ 22 1714858 Compiled
10 Odin 22 4041386 Compiled
11 Crystal 24 4265301 Compiled
12 Dart 25 16935594 JIT
13 Fortran 31 1851392 Compiled
14 Haskell 31 12096853 Compiled
15 Lua 43 2250069 Interpreted
16 Brainfuck 47 9273344 Interpreted
17 Bash 48 2058922 Interpreted
18 Python 48 9704789 Interpreted
19 Java 51 45765973 JIT
20 CSharp 57 41533440 JIT
21 Kotlin 64 46918314 JIT
22 Ruby 72 29485738 Interpreted
23 PHP 73 26514773 Interpreted
24 Swift 92 6340608 Compiled
25 Perl 92 12653909 Interpreted
26 Erlang 137 77911381 Interpreted
27 Julia 153 235945984 JIT
28 R 177 92394837 Interpreted
29 JavaScript 212 51014314 Interpreted
30 Elixir 299 89221802 Interpreted
31 Scala 372 56661333 JIT
32 TypeScript 990 225329152 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_1000_output.txt.


Generated from Pi Calculation Benchmark - Apple A18 Pro Performance Study