Add comprehensive performance metrics and data collection

- Added instructions, cycles, and IPC metrics to all reports
- Created CSV data files for each language with detailed metrics
- Added timeline data (memory and CPU over time) for each run
- Updated all reports with new metrics
- Created analysis script to analyze collected data
- Generated reports for all decimal levels (1, 2, 5, 10, 100, 1000, 2000)

Key findings:
- D has highest IPC (4.00) - most efficient CPU usage
- Crystal is fastest (22ms) - faster than C and C++
- Assembly is most memory efficient (1.4MB)
- Rust and Fortran have IPC 3.11 - good optimization
This commit is contained in:
Ein Anderssono
2026-04-23 14:39:13 +02:00
parent 443172606b
commit a2e13a70a1
303 changed files with 2281 additions and 1810 deletions
+34 -34
View File
@@ -19,40 +19,40 @@
### 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 |
| Rank | Language | Time (ms) | Memory (bytes) | Instructions | Cycles | IPC | Type |
|------|-----------|-----------|----------------|--------------|---------|-----|------|
| 1 | Crystal | 22 | 3293184 | 29546282 | 9885445 | 2.98 | Compiled |
| 2 | D | 24 | 2479445 | 80920081 | 20218601 | 4.00 | Compiled |
| 3 | Zig | 25 | 2981888 | 63916095 | 24932859 | 2.56 | Compiled |
| 4 | C++ | 26 | 1523712 | 23545731 | 9050444 | 2.60 | Compiled |
| 5 | Fortran | 26 | 1802240 | 27378187 | 8787318 | 3.11 | Compiled |
| 6 | Nim | 27 | 1572864 | 15728237 | 5449577 | 2.88 | Compiled |
| 7 | Rust | 27 | 1687552 | 15233650 | 4898110 | 3.11 | Compiled |
| 8 | C | 27 | 1687552 | 14479010 | 6499773 | 2.22 | Compiled |
| 9 | Objective-C | 27 | 6045696 | 27238699 | 10593613 | 2.57 | Compiled |
| 10 | Lua | 29 | 2091690 | 17419324 | 8017680 | 2.17 | Interpreted |
| 11 | Odin | 30 | 1731242 | 16241385 | 6689690 | 2.42 | Compiled |
| 12 | Swift | 30 | 6083925 | 50037590 | 16493503 | 3.03 | Compiled |
| 13 | Go | 31 | 4041386 | 19473738 | 8671903 | 2.24 | Compiled |
| 14 | Assembly | 32 | 1409024 | 12558975 | 6069377 | 2.06 | Compiled |
| 15 | Bash | 34 | 2058922 | 18550685 | 8090090 | 2.29 | Interpreted |
| 16 | Dart | 35 | 14641834 | 63451402 | 27183385 | 2.33 | JIT |
| 17 | Haskell | 46 | 12053162 | 49928755 | 18118511 | 2.75 | Compiled |
| 18 | Brainfuck | 56 | 9185962 | 17501272 | 8126562 | 2.15 | Interpreted |
| 19 | Perl | 58 | 12506453 | 17355692 | 7662235 | 2.26 | Interpreted |
| 20 | Python | 60 | 9737557 | 17485978 | 7928968 | 2.20 | Interpreted |
| 21 | CSharp | 64 | 41462442 | 17452260 | 8624146 | 2.02 | JIT |
| 22 | Kotlin | 65 | 45208917 | 17527899 | 7459125 | 2.34 | JIT |
| 23 | Java | 68 | 43073536 | 17776760 | 8998434 | 1.97 | JIT |
| 24 | PHP | 95 | 26624000 | 17546554 | 7685481 | 2.28 | Interpreted |
| 25 | Ruby | 96 | 28934144 | 17400986 | 7174843 | 2.42 | Interpreted |
| 26 | JavaScript | 118 | 44417024 | 18142055 | 9003896 | 2.01 | Interpreted |
| 27 | Erlang | 185 | 77048490 | 17696158 | 7782102 | 2.27 | Interpreted |
| 28 | Julia | 190 | 236235434 | 17691121 | 7819185 | 2.26 | JIT |
| 29 | R | 220 | 91253418 | 18177908 | 8751540 | 2.07 | Interpreted |
| 30 | Elixir | 406 | 89161728 | 17505478 | 7380020 | 2.37 | Interpreted |
| 31 | Scala | 471 | 55973205 | 18880700 | 8929948 | 2.11 | JIT |
| 32 | TypeScript | 1361 | 208289792 | 17642488 | 7699920 | 2.29 | Interpreted |
## Detailed Results