Files
print_hej/reports/5_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: 5 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 Nim 19 1523712 Compiled
2 Assembly 20 1409024 Compiled
3 C++ 20 1490944 Compiled
4 Odin 20 1611093 Compiled
5 Rust 20 1622016 Compiled
6 Fortran 20 1802240 Compiled
7 Lua 20 2086229 Interpreted
8 Go 20 3877546 Compiled
9 Objective-C 20 6029312 Compiled
10 C 21 1671168 Compiled
11 Zig 21 2981888 Compiled
12 Swift 21 5947392 Compiled
13 D 22 2457600 Compiled
14 Crystal 24 3244032 Compiled
15 Bash 27 2048000 Interpreted
16 Dart 27 14467072 JIT
17 Haskell 31 11894784 Compiled
18 Perl 43 12517376 Interpreted
19 Brainfuck 44 9125888 Interpreted
20 Java 46 42980693 JIT
21 CSharp 51 41385984 JIT
22 Python 53 9830400 Interpreted
23 Kotlin 59 45143381 JIT
24 PHP 67 26471082 Interpreted
25 JavaScript 78 38338560 Interpreted
26 Ruby 79 28813994 Interpreted
27 Erlang 131 77529088 Interpreted
28 Julia 160 235864064 JIT
29 R 170 90778282 Interpreted
30 Elixir 303 89134421 Interpreted
31 Scala 386 55995050 JIT
32 TypeScript 886 217841664 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_5_output.txt.


Generated from Pi Calculation Benchmark - Apple A18 Pro Performance Study