# 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 | ## Detailed Results See the full test output in `reports/run_1000_output.txt`. --- *Generated from Pi Calculation Benchmark - Apple A18 Pro Performance Study*