Implement two-step measurement method: run_fast.sh for accurate timing without overhead, remove Vimscript and Wolfram, run all tests
@@ -1,66 +0,0 @@
|
||||
# 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) | 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 |
|
||||
|
||||
## Visualizations
|
||||
|
||||

|
||||
|
||||
## Detailed Results
|
||||
|
||||
See the full test output in `reports/run_1000_output.txt`.
|
||||
|
||||
---
|
||||
*Generated from Pi Calculation Benchmark - Apple A18 Pro Performance Study*
|
||||
|
Before Width: | Height: | Size: 215 KiB |
@@ -1,112 +0,0 @@
|
||||
# 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) | 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 | Swift | 30 | 6083925 | 50037590 | 16493503 | 3.03 | Compiled |
|
||||
| 12 | Odin | 30 | 1731242 | 16241385 | 6689690 | 2.42 | 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 |
|
||||
|
||||
## Visualizations
|
||||
|
||||
### Execution Time Comparison
|
||||
|
||||
```mermaid
|
||||
xychart-beta
|
||||
title "Execution Time Comparison - 1000 Decimals"
|
||||
x-axis ["Crystal", "D", "Zig", "C++", "Fortran", "Nim", "Rust", "C", "Objective-C", "Lua", "Swift", "Odin", "Go", "Assembly", "Bash", "Dart", "Haskell", "Brainfuck", "Perl", "Python"]
|
||||
y-axis "Time (ms)" 0 --> 26
|
||||
bar [22, 24, 25, 26, 26, 27, 27, 27, 27, 29, 30, 30, 31, 32, 34, 35, 46, 56, 58, 60]
|
||||
```
|
||||
|
||||
### Memory Usage Comparison
|
||||
|
||||
```mermaid
|
||||
xychart-beta
|
||||
title "Memory Usage Comparison - 1000 Decimals"
|
||||
x-axis ["Assembly", "C++", "Nim", "Rust", "C", "Odin", "Fortran", "Bash", "Lua", "D", "Zig", "Crystal", "Go", "Objective-C", "Swift", "Brainfuck", "Python", "Haskell", "Perl", "Dart"]
|
||||
y-axis "Memory (MB)" 0 --> 1
|
||||
bar [1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 5, 5, 8, 9, 11, 11, 13]
|
||||
```
|
||||
|
||||
### CPU Efficiency (IPC) Comparison
|
||||
|
||||
```mermaid
|
||||
xychart-beta
|
||||
title "CPU Efficiency (IPC) Comparison - 1000 Decimals"
|
||||
x-axis ["D", "Rust", "Fortran", "Swift", "Crystal", "Nim", "Haskell", "C++", "Objective-C", "Zig", "Odin", "Ruby", "Elixir", "Kotlin", "Dart", "TypeScript", "Bash", "PHP", "Erlang", "Perl"]
|
||||
y-axis "IPC (Instructions Per Cycle)" 0 --> 4
|
||||
bar [4.0, 3.11, 3.11, 3.03, 2.98, 2.88, 2.75, 2.6, 2.57, 2.56, 2.42, 2.42, 2.37, 2.34, 2.33, 2.29, 2.29, 2.28, 2.27, 2.26]
|
||||
```
|
||||
|
||||
### Time vs Memory Trade-off
|
||||
|
||||
```mermaid
|
||||
graph TD
|
||||
subgraph "Time vs Memory Trade-off - 1000 Decimals"
|
||||
Crystal["Crystal<br/>Time: 22ms<br/>Memory: 3MB"]
|
||||
D["D<br/>Time: 24ms<br/>Memory: 2MB"]
|
||||
Zig["Zig<br/>Time: 25ms<br/>Memory: 2MB"]
|
||||
C++["C++<br/>Time: 26ms<br/>Memory: 1MB"]
|
||||
Fortran["Fortran<br/>Time: 26ms<br/>Memory: 1MB"]
|
||||
Nim["Nim<br/>Time: 27ms<br/>Memory: 1MB"]
|
||||
Rust["Rust<br/>Time: 27ms<br/>Memory: 1MB"]
|
||||
C["C<br/>Time: 27ms<br/>Memory: 1MB"]
|
||||
Objective-C["Objective-C<br/>Time: 27ms<br/>Memory: 5MB"]
|
||||
Lua["Lua<br/>Time: 29ms<br/>Memory: 1MB"]
|
||||
end
|
||||
```
|
||||
|
||||
## Detailed Results
|
||||
|
||||
See the full test output in `reports/run_1000_output.txt`.
|
||||
|
||||
---
|
||||
*Generated from Pi Calculation Benchmark - Apple A18 Pro Performance Study*
|
||||
@@ -1,66 +0,0 @@
|
||||
# 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) | 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 |
|
||||
|
||||
## Visualizations
|
||||
|
||||

|
||||
|
||||
## Detailed Results
|
||||
|
||||
See the full test output in `reports/run_100_output.txt`.
|
||||
|
||||
---
|
||||
*Generated from Pi Calculation Benchmark - Apple A18 Pro Performance Study*
|
||||
|
Before Width: | Height: | Size: 215 KiB |
@@ -1,112 +0,0 @@
|
||||
# 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) | 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 | Swift | 30 | 6083925 | 50037590 | 16493503 | 3.03 | Compiled |
|
||||
| 12 | Odin | 30 | 1731242 | 16241385 | 6689690 | 2.42 | 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 |
|
||||
|
||||
## Visualizations
|
||||
|
||||
### Execution Time Comparison
|
||||
|
||||
```mermaid
|
||||
xychart-beta
|
||||
title "Execution Time Comparison - 100 Decimals"
|
||||
x-axis ["Crystal", "D", "Zig", "C++", "Fortran", "Nim", "Rust", "C", "Objective-C", "Lua", "Swift", "Odin", "Go", "Assembly", "Bash", "Dart", "Haskell", "Brainfuck", "Perl", "Python"]
|
||||
y-axis "Time (ms)" 0 --> 26
|
||||
bar [22, 24, 25, 26, 26, 27, 27, 27, 27, 29, 30, 30, 31, 32, 34, 35, 46, 56, 58, 60]
|
||||
```
|
||||
|
||||
### Memory Usage Comparison
|
||||
|
||||
```mermaid
|
||||
xychart-beta
|
||||
title "Memory Usage Comparison - 100 Decimals"
|
||||
x-axis ["Assembly", "C++", "Nim", "Rust", "C", "Odin", "Fortran", "Bash", "Lua", "D", "Zig", "Crystal", "Go", "Objective-C", "Swift", "Brainfuck", "Python", "Haskell", "Perl", "Dart"]
|
||||
y-axis "Memory (MB)" 0 --> 1
|
||||
bar [1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 5, 5, 8, 9, 11, 11, 13]
|
||||
```
|
||||
|
||||
### CPU Efficiency (IPC) Comparison
|
||||
|
||||
```mermaid
|
||||
xychart-beta
|
||||
title "CPU Efficiency (IPC) Comparison - 100 Decimals"
|
||||
x-axis ["D", "Rust", "Fortran", "Swift", "Crystal", "Nim", "Haskell", "C++", "Objective-C", "Zig", "Odin", "Ruby", "Elixir", "Kotlin", "Dart", "TypeScript", "Bash", "PHP", "Erlang", "Perl"]
|
||||
y-axis "IPC (Instructions Per Cycle)" 0 --> 4
|
||||
bar [4.0, 3.11, 3.11, 3.03, 2.98, 2.88, 2.75, 2.6, 2.57, 2.56, 2.42, 2.42, 2.37, 2.34, 2.33, 2.29, 2.29, 2.28, 2.27, 2.26]
|
||||
```
|
||||
|
||||
### Time vs Memory Trade-off
|
||||
|
||||
```mermaid
|
||||
graph TD
|
||||
subgraph "Time vs Memory Trade-off - 100 Decimals"
|
||||
Crystal["Crystal<br/>Time: 22ms<br/>Memory: 3MB"]
|
||||
D["D<br/>Time: 24ms<br/>Memory: 2MB"]
|
||||
Zig["Zig<br/>Time: 25ms<br/>Memory: 2MB"]
|
||||
C++["C++<br/>Time: 26ms<br/>Memory: 1MB"]
|
||||
Fortran["Fortran<br/>Time: 26ms<br/>Memory: 1MB"]
|
||||
Nim["Nim<br/>Time: 27ms<br/>Memory: 1MB"]
|
||||
Rust["Rust<br/>Time: 27ms<br/>Memory: 1MB"]
|
||||
C["C<br/>Time: 27ms<br/>Memory: 1MB"]
|
||||
Objective-C["Objective-C<br/>Time: 27ms<br/>Memory: 5MB"]
|
||||
Lua["Lua<br/>Time: 29ms<br/>Memory: 1MB"]
|
||||
end
|
||||
```
|
||||
|
||||
## Detailed Results
|
||||
|
||||
See the full test output in `reports/run_100_output.txt`.
|
||||
|
||||
---
|
||||
*Generated from Pi Calculation Benchmark - Apple A18 Pro Performance Study*
|
||||
@@ -1,66 +0,0 @@
|
||||
# Performance Report: 10 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) | 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 |
|
||||
|
||||
## Visualizations
|
||||
|
||||

|
||||
|
||||
## Detailed Results
|
||||
|
||||
See the full test output in `reports/run_10_output.txt`.
|
||||
|
||||
---
|
||||
*Generated from Pi Calculation Benchmark - Apple A18 Pro Performance Study*
|
||||
|
Before Width: | Height: | Size: 214 KiB |
@@ -1,112 +0,0 @@
|
||||
# Performance Report: 10 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) | 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 | Swift | 30 | 6083925 | 50037590 | 16493503 | 3.03 | Compiled |
|
||||
| 12 | Odin | 30 | 1731242 | 16241385 | 6689690 | 2.42 | 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 |
|
||||
|
||||
## Visualizations
|
||||
|
||||
### Execution Time Comparison
|
||||
|
||||
```mermaid
|
||||
xychart-beta
|
||||
title "Execution Time Comparison - 10 Decimals"
|
||||
x-axis ["Crystal", "D", "Zig", "C++", "Fortran", "Nim", "Rust", "C", "Objective-C", "Lua", "Swift", "Odin", "Go", "Assembly", "Bash", "Dart", "Haskell", "Brainfuck", "Perl", "Python"]
|
||||
y-axis "Time (ms)" 0 --> 26
|
||||
bar [22, 24, 25, 26, 26, 27, 27, 27, 27, 29, 30, 30, 31, 32, 34, 35, 46, 56, 58, 60]
|
||||
```
|
||||
|
||||
### Memory Usage Comparison
|
||||
|
||||
```mermaid
|
||||
xychart-beta
|
||||
title "Memory Usage Comparison - 10 Decimals"
|
||||
x-axis ["Assembly", "C++", "Nim", "Rust", "C", "Odin", "Fortran", "Bash", "Lua", "D", "Zig", "Crystal", "Go", "Objective-C", "Swift", "Brainfuck", "Python", "Haskell", "Perl", "Dart"]
|
||||
y-axis "Memory (MB)" 0 --> 1
|
||||
bar [1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 5, 5, 8, 9, 11, 11, 13]
|
||||
```
|
||||
|
||||
### CPU Efficiency (IPC) Comparison
|
||||
|
||||
```mermaid
|
||||
xychart-beta
|
||||
title "CPU Efficiency (IPC) Comparison - 10 Decimals"
|
||||
x-axis ["D", "Rust", "Fortran", "Swift", "Crystal", "Nim", "Haskell", "C++", "Objective-C", "Zig", "Odin", "Ruby", "Elixir", "Kotlin", "Dart", "TypeScript", "Bash", "PHP", "Erlang", "Perl"]
|
||||
y-axis "IPC (Instructions Per Cycle)" 0 --> 4
|
||||
bar [4.0, 3.11, 3.11, 3.03, 2.98, 2.88, 2.75, 2.6, 2.57, 2.56, 2.42, 2.42, 2.37, 2.34, 2.33, 2.29, 2.29, 2.28, 2.27, 2.26]
|
||||
```
|
||||
|
||||
### Time vs Memory Trade-off
|
||||
|
||||
```mermaid
|
||||
graph TD
|
||||
subgraph "Time vs Memory Trade-off - 10 Decimals"
|
||||
Crystal["Crystal<br/>Time: 22ms<br/>Memory: 3MB"]
|
||||
D["D<br/>Time: 24ms<br/>Memory: 2MB"]
|
||||
Zig["Zig<br/>Time: 25ms<br/>Memory: 2MB"]
|
||||
C++["C++<br/>Time: 26ms<br/>Memory: 1MB"]
|
||||
Fortran["Fortran<br/>Time: 26ms<br/>Memory: 1MB"]
|
||||
Nim["Nim<br/>Time: 27ms<br/>Memory: 1MB"]
|
||||
Rust["Rust<br/>Time: 27ms<br/>Memory: 1MB"]
|
||||
C["C<br/>Time: 27ms<br/>Memory: 1MB"]
|
||||
Objective-C["Objective-C<br/>Time: 27ms<br/>Memory: 5MB"]
|
||||
Lua["Lua<br/>Time: 29ms<br/>Memory: 1MB"]
|
||||
end
|
||||
```
|
||||
|
||||
## Detailed Results
|
||||
|
||||
See the full test output in `reports/run_10_output.txt`.
|
||||
|
||||
---
|
||||
*Generated from Pi Calculation Benchmark - Apple A18 Pro Performance Study*
|
||||
@@ -1,66 +0,0 @@
|
||||
# Performance Report: 1 Decimal
|
||||
|
||||
## 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) | 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 |
|
||||
|
||||
## Visualizations
|
||||
|
||||

|
||||
|
||||
## Detailed Results
|
||||
|
||||
See the full test output in `reports/run_1_output.txt`.
|
||||
|
||||
---
|
||||
*Generated from Pi Calculation Benchmark - Apple A18 Pro Performance Study*
|
||||
|
Before Width: | Height: | Size: 213 KiB |
@@ -1,112 +0,0 @@
|
||||
# Performance Report: 1 Decimal
|
||||
|
||||
## 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) | 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 | Swift | 30 | 6083925 | 50037590 | 16493503 | 3.03 | Compiled |
|
||||
| 12 | Odin | 30 | 1731242 | 16241385 | 6689690 | 2.42 | 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 |
|
||||
|
||||
## Visualizations
|
||||
|
||||
### Execution Time Comparison
|
||||
|
||||
```mermaid
|
||||
xychart-beta
|
||||
title "Execution Time Comparison - 1 Decimal"
|
||||
x-axis ["Crystal", "D", "Zig", "C++", "Fortran", "Nim", "Rust", "C", "Objective-C", "Lua", "Swift", "Odin", "Go", "Assembly", "Bash", "Dart", "Haskell", "Brainfuck", "Perl", "Python"]
|
||||
y-axis "Time (ms)" 0 --> 26
|
||||
bar [22, 24, 25, 26, 26, 27, 27, 27, 27, 29, 30, 30, 31, 32, 34, 35, 46, 56, 58, 60]
|
||||
```
|
||||
|
||||
### Memory Usage Comparison
|
||||
|
||||
```mermaid
|
||||
xychart-beta
|
||||
title "Memory Usage Comparison - 1 Decimal"
|
||||
x-axis ["Assembly", "C++", "Nim", "Rust", "C", "Odin", "Fortran", "Bash", "Lua", "D", "Zig", "Crystal", "Go", "Objective-C", "Swift", "Brainfuck", "Python", "Haskell", "Perl", "Dart"]
|
||||
y-axis "Memory (MB)" 0 --> 1
|
||||
bar [1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 5, 5, 8, 9, 11, 11, 13]
|
||||
```
|
||||
|
||||
### CPU Efficiency (IPC) Comparison
|
||||
|
||||
```mermaid
|
||||
xychart-beta
|
||||
title "CPU Efficiency (IPC) Comparison - 1 Decimal"
|
||||
x-axis ["D", "Rust", "Fortran", "Swift", "Crystal", "Nim", "Haskell", "C++", "Objective-C", "Zig", "Odin", "Ruby", "Elixir", "Kotlin", "Dart", "TypeScript", "Bash", "PHP", "Erlang", "Perl"]
|
||||
y-axis "IPC (Instructions Per Cycle)" 0 --> 4
|
||||
bar [4.0, 3.11, 3.11, 3.03, 2.98, 2.88, 2.75, 2.6, 2.57, 2.56, 2.42, 2.42, 2.37, 2.34, 2.33, 2.29, 2.29, 2.28, 2.27, 2.26]
|
||||
```
|
||||
|
||||
### Time vs Memory Trade-off
|
||||
|
||||
```mermaid
|
||||
graph TD
|
||||
subgraph "Time vs Memory Trade-off - 1 Decimal"
|
||||
Crystal["Crystal<br/>Time: 22ms<br/>Memory: 3MB"]
|
||||
D["D<br/>Time: 24ms<br/>Memory: 2MB"]
|
||||
Zig["Zig<br/>Time: 25ms<br/>Memory: 2MB"]
|
||||
C++["C++<br/>Time: 26ms<br/>Memory: 1MB"]
|
||||
Fortran["Fortran<br/>Time: 26ms<br/>Memory: 1MB"]
|
||||
Nim["Nim<br/>Time: 27ms<br/>Memory: 1MB"]
|
||||
Rust["Rust<br/>Time: 27ms<br/>Memory: 1MB"]
|
||||
C["C<br/>Time: 27ms<br/>Memory: 1MB"]
|
||||
Objective-C["Objective-C<br/>Time: 27ms<br/>Memory: 5MB"]
|
||||
Lua["Lua<br/>Time: 29ms<br/>Memory: 1MB"]
|
||||
end
|
||||
```
|
||||
|
||||
## Detailed Results
|
||||
|
||||
See the full test output in `reports/run_1_output.txt`.
|
||||
|
||||
---
|
||||
*Generated from Pi Calculation Benchmark - Apple A18 Pro Performance Study*
|
||||
@@ -1,66 +0,0 @@
|
||||
# Performance Report: 2000 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) | 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 |
|
||||
|
||||
## Visualizations
|
||||
|
||||

|
||||
|
||||
## Detailed Results
|
||||
|
||||
See the full test output in `reports/run_2000_output.txt`.
|
||||
|
||||
---
|
||||
*Generated from Pi Calculation Benchmark - Apple A18 Pro Performance Study*
|
||||
|
Before Width: | Height: | Size: 216 KiB |
@@ -1,112 +0,0 @@
|
||||
# Performance Report: 2000 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) | 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 | Swift | 30 | 6083925 | 50037590 | 16493503 | 3.03 | Compiled |
|
||||
| 12 | Odin | 30 | 1731242 | 16241385 | 6689690 | 2.42 | 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 |
|
||||
|
||||
## Visualizations
|
||||
|
||||
### Execution Time Comparison
|
||||
|
||||
```mermaid
|
||||
xychart-beta
|
||||
title "Execution Time Comparison - 2000 Decimals"
|
||||
x-axis ["Crystal", "D", "Zig", "C++", "Fortran", "Nim", "Rust", "C", "Objective-C", "Lua", "Swift", "Odin", "Go", "Assembly", "Bash", "Dart", "Haskell", "Brainfuck", "Perl", "Python"]
|
||||
y-axis "Time (ms)" 0 --> 26
|
||||
bar [22, 24, 25, 26, 26, 27, 27, 27, 27, 29, 30, 30, 31, 32, 34, 35, 46, 56, 58, 60]
|
||||
```
|
||||
|
||||
### Memory Usage Comparison
|
||||
|
||||
```mermaid
|
||||
xychart-beta
|
||||
title "Memory Usage Comparison - 2000 Decimals"
|
||||
x-axis ["Assembly", "C++", "Nim", "Rust", "C", "Odin", "Fortran", "Bash", "Lua", "D", "Zig", "Crystal", "Go", "Objective-C", "Swift", "Brainfuck", "Python", "Haskell", "Perl", "Dart"]
|
||||
y-axis "Memory (MB)" 0 --> 1
|
||||
bar [1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 5, 5, 8, 9, 11, 11, 13]
|
||||
```
|
||||
|
||||
### CPU Efficiency (IPC) Comparison
|
||||
|
||||
```mermaid
|
||||
xychart-beta
|
||||
title "CPU Efficiency (IPC) Comparison - 2000 Decimals"
|
||||
x-axis ["D", "Rust", "Fortran", "Swift", "Crystal", "Nim", "Haskell", "C++", "Objective-C", "Zig", "Odin", "Ruby", "Elixir", "Kotlin", "Dart", "TypeScript", "Bash", "PHP", "Erlang", "Perl"]
|
||||
y-axis "IPC (Instructions Per Cycle)" 0 --> 4
|
||||
bar [4.0, 3.11, 3.11, 3.03, 2.98, 2.88, 2.75, 2.6, 2.57, 2.56, 2.42, 2.42, 2.37, 2.34, 2.33, 2.29, 2.29, 2.28, 2.27, 2.26]
|
||||
```
|
||||
|
||||
### Time vs Memory Trade-off
|
||||
|
||||
```mermaid
|
||||
graph TD
|
||||
subgraph "Time vs Memory Trade-off - 2000 Decimals"
|
||||
Crystal["Crystal<br/>Time: 22ms<br/>Memory: 3MB"]
|
||||
D["D<br/>Time: 24ms<br/>Memory: 2MB"]
|
||||
Zig["Zig<br/>Time: 25ms<br/>Memory: 2MB"]
|
||||
C++["C++<br/>Time: 26ms<br/>Memory: 1MB"]
|
||||
Fortran["Fortran<br/>Time: 26ms<br/>Memory: 1MB"]
|
||||
Nim["Nim<br/>Time: 27ms<br/>Memory: 1MB"]
|
||||
Rust["Rust<br/>Time: 27ms<br/>Memory: 1MB"]
|
||||
C["C<br/>Time: 27ms<br/>Memory: 1MB"]
|
||||
Objective-C["Objective-C<br/>Time: 27ms<br/>Memory: 5MB"]
|
||||
Lua["Lua<br/>Time: 29ms<br/>Memory: 1MB"]
|
||||
end
|
||||
```
|
||||
|
||||
## Detailed Results
|
||||
|
||||
See the full test output in `reports/run_2000_output.txt`.
|
||||
|
||||
---
|
||||
*Generated from Pi Calculation Benchmark - Apple A18 Pro Performance Study*
|
||||
@@ -1,66 +0,0 @@
|
||||
# Performance Report: 2 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) | 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 |
|
||||
|
||||
## Visualizations
|
||||
|
||||

|
||||
|
||||
## Detailed Results
|
||||
|
||||
See the full test output in `reports/run_2_output.txt`.
|
||||
|
||||
---
|
||||
*Generated from Pi Calculation Benchmark - Apple A18 Pro Performance Study*
|
||||
|
Before Width: | Height: | Size: 214 KiB |
@@ -1,112 +0,0 @@
|
||||
# Performance Report: 2 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) | 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 | Swift | 30 | 6083925 | 50037590 | 16493503 | 3.03 | Compiled |
|
||||
| 12 | Odin | 30 | 1731242 | 16241385 | 6689690 | 2.42 | 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 |
|
||||
|
||||
## Visualizations
|
||||
|
||||
### Execution Time Comparison
|
||||
|
||||
```mermaid
|
||||
xychart-beta
|
||||
title "Execution Time Comparison - 2 Decimals"
|
||||
x-axis ["Crystal", "D", "Zig", "C++", "Fortran", "Nim", "Rust", "C", "Objective-C", "Lua", "Swift", "Odin", "Go", "Assembly", "Bash", "Dart", "Haskell", "Brainfuck", "Perl", "Python"]
|
||||
y-axis "Time (ms)" 0 --> 26
|
||||
bar [22, 24, 25, 26, 26, 27, 27, 27, 27, 29, 30, 30, 31, 32, 34, 35, 46, 56, 58, 60]
|
||||
```
|
||||
|
||||
### Memory Usage Comparison
|
||||
|
||||
```mermaid
|
||||
xychart-beta
|
||||
title "Memory Usage Comparison - 2 Decimals"
|
||||
x-axis ["Assembly", "C++", "Nim", "Rust", "C", "Odin", "Fortran", "Bash", "Lua", "D", "Zig", "Crystal", "Go", "Objective-C", "Swift", "Brainfuck", "Python", "Haskell", "Perl", "Dart"]
|
||||
y-axis "Memory (MB)" 0 --> 1
|
||||
bar [1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 5, 5, 8, 9, 11, 11, 13]
|
||||
```
|
||||
|
||||
### CPU Efficiency (IPC) Comparison
|
||||
|
||||
```mermaid
|
||||
xychart-beta
|
||||
title "CPU Efficiency (IPC) Comparison - 2 Decimals"
|
||||
x-axis ["D", "Rust", "Fortran", "Swift", "Crystal", "Nim", "Haskell", "C++", "Objective-C", "Zig", "Odin", "Ruby", "Elixir", "Kotlin", "Dart", "TypeScript", "Bash", "PHP", "Erlang", "Perl"]
|
||||
y-axis "IPC (Instructions Per Cycle)" 0 --> 4
|
||||
bar [4.0, 3.11, 3.11, 3.03, 2.98, 2.88, 2.75, 2.6, 2.57, 2.56, 2.42, 2.42, 2.37, 2.34, 2.33, 2.29, 2.29, 2.28, 2.27, 2.26]
|
||||
```
|
||||
|
||||
### Time vs Memory Trade-off
|
||||
|
||||
```mermaid
|
||||
graph TD
|
||||
subgraph "Time vs Memory Trade-off - 2 Decimals"
|
||||
Crystal["Crystal<br/>Time: 22ms<br/>Memory: 3MB"]
|
||||
D["D<br/>Time: 24ms<br/>Memory: 2MB"]
|
||||
Zig["Zig<br/>Time: 25ms<br/>Memory: 2MB"]
|
||||
C++["C++<br/>Time: 26ms<br/>Memory: 1MB"]
|
||||
Fortran["Fortran<br/>Time: 26ms<br/>Memory: 1MB"]
|
||||
Nim["Nim<br/>Time: 27ms<br/>Memory: 1MB"]
|
||||
Rust["Rust<br/>Time: 27ms<br/>Memory: 1MB"]
|
||||
C["C<br/>Time: 27ms<br/>Memory: 1MB"]
|
||||
Objective-C["Objective-C<br/>Time: 27ms<br/>Memory: 5MB"]
|
||||
Lua["Lua<br/>Time: 29ms<br/>Memory: 1MB"]
|
||||
end
|
||||
```
|
||||
|
||||
## Detailed Results
|
||||
|
||||
See the full test output in `reports/run_2_output.txt`.
|
||||
|
||||
---
|
||||
*Generated from Pi Calculation Benchmark - Apple A18 Pro Performance Study*
|
||||
@@ -1,66 +0,0 @@
|
||||
# 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) | 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 |
|
||||
|
||||
## Visualizations
|
||||
|
||||

|
||||
|
||||
## Detailed Results
|
||||
|
||||
See the full test output in `reports/run_5_output.txt`.
|
||||
|
||||
---
|
||||
*Generated from Pi Calculation Benchmark - Apple A18 Pro Performance Study*
|
||||
|
Before Width: | Height: | Size: 214 KiB |
@@ -1,112 +0,0 @@
|
||||
# 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) | 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 | Swift | 30 | 6083925 | 50037590 | 16493503 | 3.03 | Compiled |
|
||||
| 12 | Odin | 30 | 1731242 | 16241385 | 6689690 | 2.42 | 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 |
|
||||
|
||||
## Visualizations
|
||||
|
||||
### Execution Time Comparison
|
||||
|
||||
```mermaid
|
||||
xychart-beta
|
||||
title "Execution Time Comparison - 5 Decimals"
|
||||
x-axis ["Crystal", "D", "Zig", "C++", "Fortran", "Nim", "Rust", "C", "Objective-C", "Lua", "Swift", "Odin", "Go", "Assembly", "Bash", "Dart", "Haskell", "Brainfuck", "Perl", "Python"]
|
||||
y-axis "Time (ms)" 0 --> 26
|
||||
bar [22, 24, 25, 26, 26, 27, 27, 27, 27, 29, 30, 30, 31, 32, 34, 35, 46, 56, 58, 60]
|
||||
```
|
||||
|
||||
### Memory Usage Comparison
|
||||
|
||||
```mermaid
|
||||
xychart-beta
|
||||
title "Memory Usage Comparison - 5 Decimals"
|
||||
x-axis ["Assembly", "C++", "Nim", "Rust", "C", "Odin", "Fortran", "Bash", "Lua", "D", "Zig", "Crystal", "Go", "Objective-C", "Swift", "Brainfuck", "Python", "Haskell", "Perl", "Dart"]
|
||||
y-axis "Memory (MB)" 0 --> 1
|
||||
bar [1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 5, 5, 8, 9, 11, 11, 13]
|
||||
```
|
||||
|
||||
### CPU Efficiency (IPC) Comparison
|
||||
|
||||
```mermaid
|
||||
xychart-beta
|
||||
title "CPU Efficiency (IPC) Comparison - 5 Decimals"
|
||||
x-axis ["D", "Rust", "Fortran", "Swift", "Crystal", "Nim", "Haskell", "C++", "Objective-C", "Zig", "Odin", "Ruby", "Elixir", "Kotlin", "Dart", "TypeScript", "Bash", "PHP", "Erlang", "Perl"]
|
||||
y-axis "IPC (Instructions Per Cycle)" 0 --> 4
|
||||
bar [4.0, 3.11, 3.11, 3.03, 2.98, 2.88, 2.75, 2.6, 2.57, 2.56, 2.42, 2.42, 2.37, 2.34, 2.33, 2.29, 2.29, 2.28, 2.27, 2.26]
|
||||
```
|
||||
|
||||
### Time vs Memory Trade-off
|
||||
|
||||
```mermaid
|
||||
graph TD
|
||||
subgraph "Time vs Memory Trade-off - 5 Decimals"
|
||||
Crystal["Crystal<br/>Time: 22ms<br/>Memory: 3MB"]
|
||||
D["D<br/>Time: 24ms<br/>Memory: 2MB"]
|
||||
Zig["Zig<br/>Time: 25ms<br/>Memory: 2MB"]
|
||||
C++["C++<br/>Time: 26ms<br/>Memory: 1MB"]
|
||||
Fortran["Fortran<br/>Time: 26ms<br/>Memory: 1MB"]
|
||||
Nim["Nim<br/>Time: 27ms<br/>Memory: 1MB"]
|
||||
Rust["Rust<br/>Time: 27ms<br/>Memory: 1MB"]
|
||||
C["C<br/>Time: 27ms<br/>Memory: 1MB"]
|
||||
Objective-C["Objective-C<br/>Time: 27ms<br/>Memory: 5MB"]
|
||||
Lua["Lua<br/>Time: 29ms<br/>Memory: 1MB"]
|
||||
end
|
||||
```
|
||||
|
||||
## Detailed Results
|
||||
|
||||
See the full test output in `reports/run_5_output.txt`.
|
||||
|
||||
---
|
||||
*Generated from Pi Calculation Benchmark - Apple A18 Pro Performance Study*
|
||||
@@ -1,35 +1,72 @@
|
||||
=== Pi-beräkning med 1000 decimaler (4 körningar, genomsnitt av 3 efter warmup) ===
|
||||
=== Pi-beräkning med 1000 decimaler (SNABBTEST - ingen overhead) ===
|
||||
|
||||
Bash [0;32mSUCCESS[0m 48 ms, [0;34m2058922 bytes avg / [1;33m2064384 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Brainfuck [0;32mSUCCESS[0m 47 ms, [0;34m9273344 bytes avg / [1;33m9355264 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
C [0;32mSUCCESS[0m 20 ms, [0;34m1736704 bytes avg / [1;33m1736704 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
C++ [0;32mSUCCESS[0m 22 ms, [0;34m1714858 bytes avg / [1;33m1736704 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Crystal [0;32mSUCCESS[0m 24 ms, [0;34m4265301 bytes avg / [1;33m4276224 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
CSharp [0;32mSUCCESS[0m 57 ms, [0;34m41533440 bytes avg / [1;33m41566208 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
D [0;32mSUCCESS[0m 21 ms, [0;34m3517098 bytes avg / [1;33m3538944 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Dart [0;32mSUCCESS[0m 25 ms, [0;34m16935594 bytes avg / [1;33m16990208 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Elixir [0;32mSUCCESS[0m 299 ms, [0;34m89221802 bytes avg / [1;33m89718784 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Erlang [0;32mSUCCESS[0m 137 ms, [0;34m77911381 bytes avg / [1;33m78413824 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Fortran [0;32mSUCCESS[0m 31 ms, [0;34m1851392 bytes avg / [1;33m1851392 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Go [0;32mSUCCESS[0m 20 ms, [0;34m4248917 bytes avg / [1;33m4292608 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Haskell [0;32mSUCCESS[0m 31 ms, [0;34m12096853 bytes avg / [1;33m12107776 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Java [0;32mSUCCESS[0m 51 ms, [0;34m45765973 bytes avg / [1;33m45826048 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
JavaScript [0;32mSUCCESS[0m 212 ms, [0;34m51014314 bytes avg / [1;33m52117504 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Julia [0;32mSUCCESS[0m 153 ms, [0;34m235945984 bytes avg / [1;33m236093440 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Kotlin [0;32mSUCCESS[0m 64 ms, [0;34m46918314 bytes avg / [1;33m47104000 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Objective-C [0;32mSUCCESS[0m 20 ms, [0;34m6111232 bytes avg / [1;33m6111232 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Scala [0;32mSUCCESS[0m 372 ms, [0;34m56661333 bytes avg / [1;33m56786944 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
TypeScript [0;32mSUCCESS[0m 990 ms, [0;34m225329152 bytes avg / [1;33m225411072 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Lua [0;32mSUCCESS[0m 43 ms, [0;34m2250069 bytes avg / [1;33m2260992 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Nim [0;32mSUCCESS[0m 21 ms, [0;34m1982464 bytes avg / [1;33m1982464 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Odin [0;32mSUCCESS[0m 22 ms, [0;34m4041386 bytes avg / [1;33m4063232 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Perl [0;32mSUCCESS[0m 92 ms, [0;34m12653909 bytes avg / [1;33m12730368 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
PHP [0;32mSUCCESS[0m 73 ms, [0;34m26514773 bytes avg / [1;33m26591232 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Python [0;32mSUCCESS[0m 48 ms, [0;34m9704789 bytes avg / [1;33m9797632 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
R [0;32mSUCCESS[0m 177 ms, [0;34m92394837 bytes avg / [1;33m92520448 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Ruby [0;32mSUCCESS[0m 72 ms, [0;34m29485738 bytes avg / [1;33m29507584 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Rust [0;32mSUCCESS[0m 21 ms, [0;34m1884160 bytes avg / [1;33m1900544 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Swift [0;32mSUCCESS[0m 92 ms, [0;34m6340608 bytes avg / [1;33m6340608 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Zig [0;32mSUCCESS[0m 21 ms, [0;34m2981888 bytes avg / [1;33m2981888 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Assembly [0;32mSUCCESS[0m 20 ms, [0;34m1409024 bytes avg / [1;33m1409024 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Wolfram
|
||||
Assembly [0;32mSUCCESS[0m 6 ms
|
||||
Bash [0;32mSUCCESS[0m 23 ms
|
||||
Brainfuck [0;32mSUCCESS[0m 31 ms
|
||||
C [0;32mSUCCESS[0m 4 ms
|
||||
C++ [0;32mSUCCESS[0m 7 ms
|
||||
Crystal [0;32mSUCCESS[0m 7 ms
|
||||
CSharp [0;32mSUCCESS[0m 38 ms
|
||||
D [0;32mSUCCESS[0m 8 ms
|
||||
Dart [0;32mSUCCESS[0m 15 ms
|
||||
Elixir [0;32mSUCCESS[0m 283 ms
|
||||
Erlang [0;32mSUCCESS[0m 119 ms
|
||||
Fortran [0;32mSUCCESS[0m 14 ms
|
||||
Go [0;32mSUCCESS[0m 5 ms
|
||||
Haskell [0;32mSUCCESS[0m 19 ms
|
||||
Java [0;32mSUCCESS[0m 39 ms
|
||||
JavaScript [0;32mSUCCESS[0m 209 ms
|
||||
Julia [0;32mSUCCESS[0m 128 ms
|
||||
Kotlin [0;32mSUCCESS[0m 48 ms
|
||||
Lua [0;32mSUCCESS[0m 29 ms
|
||||
Nim [0;32mSUCCESS[0m 9 ms
|
||||
Objective-C [0;32mSUCCESS[0m 9 ms
|
||||
Odin [0;32mSUCCESS[0m 9 ms
|
||||
Perl [0;32mSUCCESS[0m 82 ms
|
||||
PHP [0;32mSUCCESS[0m 54 ms
|
||||
Python [0;32mSUCCESS[0m 35 ms
|
||||
R [0;32mSUCCESS[0m 161 ms
|
||||
Ruby [0;32mSUCCESS[0m 61 ms
|
||||
Rust [0;32mSUCCESS[0m 5 ms
|
||||
Scala [0;32mSUCCESS[0m 330 ms
|
||||
Swift [0;32mSUCCESS[0m 76 ms
|
||||
TypeScript [0;32mSUCCESS[0m 1173 ms
|
||||
Zig [0;32mSUCCESS[0m 11 ms
|
||||
|
||||
=== RESULTAT (sorterat efter tid) ===
|
||||
Språk Tid (ms)
|
||||
-----------------------------------
|
||||
C 4
|
||||
Go 5
|
||||
Rust 5
|
||||
Assembly 6
|
||||
C++ 7
|
||||
Crystal 7
|
||||
D 8
|
||||
Nim 9
|
||||
Objective-C 9
|
||||
Odin 9
|
||||
Zig 11
|
||||
Fortran 14
|
||||
Dart 15
|
||||
Haskell 19
|
||||
Bash 23
|
||||
Lua 29
|
||||
Brainfuck 31
|
||||
Python 35
|
||||
CSharp 38
|
||||
Java 39
|
||||
Kotlin 48
|
||||
PHP 54
|
||||
Ruby 61
|
||||
Swift 76
|
||||
Perl 82
|
||||
Erlang 119
|
||||
Julia 128
|
||||
R 161
|
||||
JavaScript 209
|
||||
Elixir 283
|
||||
Scala 330
|
||||
TypeScript 1173
|
||||
|
||||
=== Klart ===
|
||||
|
||||
@@ -1,131 +1,72 @@
|
||||
=== Pi-beräkning med 100 decimaler (4 körningar, genomsnitt av 3 efter warmup) ===
|
||||
=== Pi-beräkning med 100 decimaler (SNABBTEST - ingen overhead) ===
|
||||
|
||||
Bash [0;32mSUCCESS[0m 34 ms, [0;34m2058922 bytes avg / [1;33m2064384 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Real: .013s, User: 0s, Sys: .006s
|
||||
Instructions: 18550685, Cycles: 8090090, IPC: 2.29
|
||||
Data saved to: data/Bash/
|
||||
Brainfuck [0;32mSUCCESS[0m 56 ms, [0;34m9185962 bytes avg / [1;33m9256960 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Real: .033s, User: .010s, Sys: .010s
|
||||
Instructions: 17501272, Cycles: 8126562, IPC: 2.15
|
||||
Data saved to: data/Brainfuck/
|
||||
C [0;32mSUCCESS[0m 27 ms, [0;34m1687552 bytes avg / [1;33m1687552 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Real: 0s, User: 0s, Sys: 0s
|
||||
Instructions: 14479010, Cycles: 6499773, IPC: 2.22
|
||||
Data saved to: data/C/
|
||||
C++ [0;32mSUCCESS[0m 26 ms, [0;34m1523712 bytes avg / [1;33m1523712 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Real: 0s, User: 0s, Sys: 0s
|
||||
Instructions: 23545731, Cycles: 9050444, IPC: 2.60
|
||||
Data saved to: data/C++/
|
||||
Crystal [0;32mSUCCESS[0m 22 ms, [0;34m3293184 bytes avg / [1;33m3293184 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Real: 0s, User: 0s, Sys: 0s
|
||||
Instructions: 29546282, Cycles: 9885445, IPC: 2.98
|
||||
Data saved to: data/Crystal/
|
||||
CSharp [0;32mSUCCESS[0m 64 ms, [0;34m41462442 bytes avg / [1;33m41566208 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Real: .036s, User: .020s, Sys: .010s
|
||||
Instructions: 17452260, Cycles: 8624146, IPC: 2.02
|
||||
Data saved to: data/CSharp/
|
||||
D [0;32mSUCCESS[0m 24 ms, [0;34m2479445 bytes avg / [1;33m2490368 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Real: 0s, User: 0s, Sys: 0s
|
||||
Instructions: 80920081, Cycles: 20218601, IPC: 4.00
|
||||
Data saved to: data/D/
|
||||
Dart [0;32mSUCCESS[0m 35 ms, [0;34m14641834 bytes avg / [1;33m14680064 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Real: .013s, User: 0s, Sys: 0s
|
||||
Instructions: 63451402, Cycles: 27183385, IPC: 2.33
|
||||
Data saved to: data/Dart/
|
||||
Elixir [0[0;32mSUCCESS[0m 406 ms, [0;34m89161728 bytes avg / [1;33m89260032 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Real: .393s, User: .296s, Sys: .216s
|
||||
Instructions: 17505478, Cycles: 7380020, IPC: 2.37
|
||||
Data saved to: data/Elixir/
|
||||
Erlang [0;32mSUCCESS[0m 185 ms, [0;34m77048490 bytes avg / [1;33m77185024 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Real: .166s, User: .120s, Sys: .100s
|
||||
Instructions: 17696158, Cycles: 7782102, IPC: 2.27
|
||||
Data saved to: data/Erlang/
|
||||
Fortran [0;32mSUCCESS[0m 26 ms, [0;34m1802240 bytes avg / [1;33m1802240 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Real: 0s, User: 0s, Sys: 0s
|
||||
Instructions: 27378187, Cycles: 8787318, IPC: 3.11
|
||||
Data saved to: data/Fortran/
|
||||
Go [0;32mSUCCESS[0m 31 ms, [0;34m4041386 bytes avg / [1;33m4145152 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Real: 0s, User: 0s, Sys: 0s
|
||||
Instructions: 19473738, Cycles: 8671903, IPC: 2.24
|
||||
Data saved to: data/Go/
|
||||
Haskell [0;32mSUCCESS[0m 46 ms, [0;34m12053162 bytes avg / [1;33m12058624 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Real: .013s, User: 0s, Sys: 0s
|
||||
Instructions: 49928755, Cycles: 18118511, IPC: 2.75
|
||||
Data saved to: data/Haskell/
|
||||
Java [0;32mSUCCESS[0m 68 ms, [0;34m43073536 bytes avg / [1;33m43106304 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Real: .046s, User: .030s, Sys: .016s
|
||||
Instructions: 17776760, Cycles: 8998434, IPC: 1.97
|
||||
Data saved to: data/Java/
|
||||
JavaScript [0;32mSUCCESS[0m 118 ms, [0;34m44417024 bytes avg / [1;33m44580864 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Real: .090s, User: .070s, Sys: .010s
|
||||
Instructions: 18142055, Cycles: 9003896, IPC: 2.01
|
||||
Data saved to: data/JavaScript/
|
||||
Julia [0;32mSUCCESS[0m 190 ms, [0;34m236235434 bytes avg / [1;33m236355584 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Real: .173s, User: .116s, Sys: .033s
|
||||
Instructions: 17691121, Cycles: 7819185, IPC: 2.26
|
||||
Data saved to: data/Julia/
|
||||
Kotlin [0;32mSUCCESS[0m 65 ms, [0;34m45208917 bytes avg / [1;33m45383680 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Real: .046s, User: .040s, Sys: .013s
|
||||
Instructions: 17527899, Cycles: 7459125, IPC: 2.34
|
||||
Data saved to: data/Kotlin/
|
||||
Objective-C [0;32mSUCCESS[0m 27 ms, [0;34m6045696 bytes avg / [1;33m6045696 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Real: 0s, User: 0s, Sys: 0s
|
||||
Instructions: 27238699, Cycles: 10593613, IPC: 2.57
|
||||
Data saved to: data/Objective-C/
|
||||
Scala [0[0;32mSUCCESS[0m 471 ms, [0;34m55973205 bytes avg / [1;33m58376192 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Real: .446s, User: .193s, Sys: .066s
|
||||
Instructions: 18880700, Cycles: 8929948, IPC: 2.11
|
||||
Data saved to: data/Scala/
|
||||
TypeScript[0[0;32mSUCCESS[0m 1361 ms, [0;34m208289792 bytes avg / [1;33m218808320 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Real: 1.333s, User: 1.700s, Sys: .183s
|
||||
Instructions: 17642488, Cycles: 7699920, IPC: 2.29
|
||||
Data saved to: data/TypeScript/
|
||||
Lua [0;32mSUCCESS[0m 29 ms, [0;34m2091690 bytes avg / [1;33m2097152 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Real: .010s, User: 0s, Sys: 0s
|
||||
Instructions: 17419324, Cycles: 8017680, IPC: 2.17
|
||||
Data saved to: data/Lua/
|
||||
Nim [0;32mSUCCESS[0m 27 ms, [0;34m1572864 bytes avg / [1;33m1572864 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Real: 0s, User: 0s, Sys: 0s
|
||||
Instructions: 15728237, Cycles: 5449577, IPC: 2.88
|
||||
Data saved to: data/Nim/
|
||||
Odin [0;32mSUCCESS[0m 30 ms, [0;34m1731242 bytes avg / [1;33m1753088 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Real: 0s, User: 0s, Sys: 0s
|
||||
Instructions: 16241385, Cycles: 6689690, IPC: 2.42
|
||||
Data saved to: data/Odin/
|
||||
Perl [0;32mSUCCESS[0m 58 ms, [0;34m12506453 bytes avg / [1;33m12550144 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Real: .040s, User: .030s, Sys: 0s
|
||||
Instructions: 17355692, Cycles: 7662235, IPC: 2.26
|
||||
Data saved to: data/Perl/
|
||||
PHP [0;32mSUCCESS[0m 95 ms, [0;34m26624000 bytes avg / [1;33m26689536 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Real: .066s, User: .043s, Sys: .010s
|
||||
Instructions: 17546554, Cycles: 7685481, IPC: 2.28
|
||||
Data saved to: data/PHP/
|
||||
Python [0;32mSUCCESS[0m 60 ms, [0;34m9737557 bytes avg / [1;33m9814016 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Real: .043s, User: .020s, Sys: .010s
|
||||
Instructions: 17485978, Cycles: 7928968, IPC: 2.20
|
||||
Data saved to: data/Python/
|
||||
R [0;32mSUCCESS[0m 220 ms, [0;34m91253418 bytes avg / [1;33m91734016 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Real: .200s, User: .143s, Sys: .036s
|
||||
Instructions: 18177908, Cycles: 8751540, IPC: 2.07
|
||||
Data saved to: data/R/
|
||||
Ruby [0;32mSUCCESS[0m 96 ms, [0;34m28934144 bytes avg / [1;33m28950528 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Real: .076s, User: .040s, Sys: .020s
|
||||
Instructions: 17400986, Cycles: 7174843, IPC: 2.42
|
||||
Data saved to: data/Ruby/
|
||||
Rust [0;32mSUCCESS[0m 27 ms, [0;34m1687552 bytes avg / [1;33m1703936 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Real: 0s, User: 0s, Sys: 0s
|
||||
Instructions: 15233650, Cycles: 4898110, IPC: 3.11
|
||||
Data saved to: data/Rust/
|
||||
Swift [0;32mSUCCESS[0m 30 ms, [0;34m6083925 bytes avg / [1;33m6094848 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Real: 0s, User: 0s, Sys: 0s
|
||||
Instructions: 50037590, Cycles: 16493503, IPC: 3.03
|
||||
Data saved to: data/Swift/
|
||||
Zig [0;32mSUCCESS[0m 25 ms, [0;34m2981888 bytes avg / [1;33m2981888 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Real: .003s, User: 0s, Sys: 0s
|
||||
Instructions: 63916095, Cycles: 24932859, IPC: 2.56
|
||||
Data saved to: data/Zig/
|
||||
Assembly [0;32mSUCCESS[0m 32 ms, [0;34m1409024 bytes avg / [1;33m1409024 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Real: 0s, User: 0s, Sys: 0s
|
||||
Instructions: 12558975, Cycles: 6069377, IPC: 2.06
|
||||
Data saved to: data/Assembly/
|
||||
Wolfram
|
||||
Assembly [0;32mSUCCESS[0m 6 ms
|
||||
Bash [0;32mSUCCESS[0m 12 ms
|
||||
Brainfuck [0;32mSUCCESS[0m 28 ms
|
||||
C [0;32mSUCCESS[0m 4 ms
|
||||
C++ [0;32mSUCCESS[0m 4 ms
|
||||
Crystal [0;32mSUCCESS[0m 5 ms
|
||||
CSharp [0;32mSUCCESS[0m 37 ms
|
||||
D [0;32mSUCCESS[0m 8 ms
|
||||
Dart [0;32mSUCCESS[0m 17 ms
|
||||
Elixir [0;32mSUCCESS[0m 310 ms
|
||||
Erlang [0;32mSUCCESS[0m 114 ms
|
||||
Fortran [0;32mSUCCESS[0m 5 ms
|
||||
Go [0;32mSUCCESS[0m 4 ms
|
||||
Haskell [0;32mSUCCESS[0m 19 ms
|
||||
Java [0;32mSUCCESS[0m 34 ms
|
||||
JavaScript [0;32mSUCCESS[0m 68 ms
|
||||
Julia [0;32mSUCCESS[0m 124 ms
|
||||
Kotlin [0;32mSUCCESS[0m 41 ms
|
||||
Lua [0;32mSUCCESS[0m 9 ms
|
||||
Nim [0;32mSUCCESS[0m 4 ms
|
||||
Objective-C [0;32mSUCCESS[0m 5 ms
|
||||
Odin [0;32mSUCCESS[0m 4 ms
|
||||
Perl [0;32mSUCCESS[0m 31 ms
|
||||
PHP [0;32mSUCCESS[0m 53 ms
|
||||
Python [0;32mSUCCESS[0m 33 ms
|
||||
R [0;32mSUCCESS[0m 206 ms
|
||||
Ruby [0;32mSUCCESS[0m 59 ms
|
||||
Rust [0;32mSUCCESS[0m 4 ms
|
||||
Scala [0;32mSUCCESS[0m 378 ms
|
||||
Swift [0;32mSUCCESS[0m 6 ms
|
||||
TypeScript [0;32mSUCCESS[0m 970 ms
|
||||
Zig [0;32mSUCCESS[0m 9 ms
|
||||
|
||||
=== RESULTAT (sorterat efter tid) ===
|
||||
Språk Tid (ms)
|
||||
-----------------------------------
|
||||
C 4
|
||||
C++ 4
|
||||
Go 4
|
||||
Nim 4
|
||||
Odin 4
|
||||
Rust 4
|
||||
Crystal 5
|
||||
Fortran 5
|
||||
Objective-C 5
|
||||
Assembly 6
|
||||
Swift 6
|
||||
D 8
|
||||
Lua 9
|
||||
Zig 9
|
||||
Bash 12
|
||||
Dart 17
|
||||
Haskell 19
|
||||
Brainfuck 28
|
||||
Perl 31
|
||||
Python 33
|
||||
Java 34
|
||||
CSharp 37
|
||||
Kotlin 41
|
||||
PHP 53
|
||||
Ruby 59
|
||||
JavaScript 68
|
||||
Erlang 114
|
||||
Julia 124
|
||||
R 206
|
||||
Elixir 310
|
||||
Scala 378
|
||||
TypeScript 970
|
||||
|
||||
=== Klart ===
|
||||
|
||||
@@ -1,35 +1,72 @@
|
||||
=== Pi-beräkning med 10 decimaler (4 körningar, genomsnitt av 3 efter warmup) ===
|
||||
=== Pi-beräkning med 10 decimaler (SNABBTEST - ingen overhead) ===
|
||||
|
||||
Bash [0;32mSUCCESS[0m 27 ms, [0;34m2048000 bytes avg / [1;33m2048000 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Brainfuck [0;32mSUCCESS[0m 44 ms, [0;34m9109504 bytes avg / [1;33m9125888 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
C [0;32mSUCCESS[0m 21 ms, [0;34m1671168 bytes avg / [1;33m1671168 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
C++ [0;32mSUCCESS[0m 20 ms, [0;34m1507328 bytes avg / [1;33m1507328 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Crystal [0;32mSUCCESS[0m 21 ms, [0;34m3244032 bytes avg / [1;33m3244032 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
CSharp [0;32mSUCCESS[0m 51 ms, [0;34m41385984 bytes avg / [1;33m41418752 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
D [0;32mSUCCESS[0m 22 ms, [0;34m2457600 bytes avg / [1;33m2457600 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Dart [0;32mSUCCESS[0m 25 ms, [0;34m14483456 bytes avg / [1;33m14516224 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Elixir [0;32mSUCCESS[0m 307 ms, [0;34m89210880 bytes avg / [1;33m89391104 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Erlang [0;32mSUCCESS[0m 158 ms, [0;34m77485397 bytes avg / [1;33m78118912 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Fortran [0;32mSUCCESS[0m 20 ms, [0;34m1802240 bytes avg / [1;33m1802240 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Go [0;32mSUCCESS[0m 20 ms, [0;34m3822933 bytes avg / [1;33m3883008 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Haskell [0;32mSUCCESS[0m 31 ms, [0;34m11993088 bytes avg / [1;33m11993088 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Java [0;32mSUCCESS[0m 46 ms, [0;34m43029845 bytes avg / [1;33m43073536 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
JavaScript [0;32mSUCCESS[0m 84 ms, [0;34m44340565 bytes avg / [1;33m44400640 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Julia [0;32mSUCCESS[0m 156 ms, [0;34m235984213 bytes avg / [1;33m236175360 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Kotlin [0;32mSUCCESS[0m 59 ms, [0;34m45187072 bytes avg / [1;33m45268992 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Objective-C [0;32mSUCCESS[0m 21 ms, [0;34m6045696 bytes avg / [1;33m6045696 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Scala [0;32mSUCCESS[0m 351 ms, [0;34m55274154 bytes avg / [1;33m55443456 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
TypeScript [0;32mSUCCESS[0m 878 ms, [0;34m218234880 bytes avg / [1;33m218562560 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Lua [0;32mSUCCESS[0m 21 ms, [0;34m2086229 bytes avg / [1;33m2097152 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Nim [0;32mSUCCESS[0m 19 ms, [0;34m1523712 bytes avg / [1;33m1523712 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Odin [0;32mSUCCESS[0m 20 ms, [0;34m1627477 bytes avg / [1;33m1638400 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Perl [0;32mSUCCESS[0m 45 ms, [0;34m12550144 bytes avg / [1;33m12582912 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
PHP [0;32mSUCCESS[0m 69 ms, [0;34m26482005 bytes avg / [1;33m26558464 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Python [0;32mSUCCESS[0m 45 ms, [0;34m9693866 bytes avg / [1;33m9797632 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
R [0;32mSUCCESS[0m 163 ms, [0;34m90882048 bytes avg / [1;33m90914816 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Ruby [0;32mSUCCESS[0m 77 ms, [0;34m28830378 bytes avg / [1;33m28901376 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Rust [0;32mSUCCESS[0m 20 ms, [0;34m1638400 bytes avg / [1;33m1638400 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Swift [0;32mSUCCESS[0m 20 ms, [0;34m5958314 bytes avg / [1;33m5980160 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Zig [0;32mSUCCESS[0m 21 ms, [0;34m2981888 bytes avg / [1;33m2981888 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Assembly [0;32mSUCCESS[0m 20 ms, [0;34m1409024 bytes avg / [1;33m1409024 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Wolfram
|
||||
Assembly [0;32mSUCCESS[0m 5 ms
|
||||
Bash [0;32mSUCCESS[0m 11 ms
|
||||
Brainfuck [0;32mSUCCESS[0m 28 ms
|
||||
C [0;32mSUCCESS[0m 4 ms
|
||||
C++ [0;32mSUCCESS[0m 4 ms
|
||||
Crystal [0;32mSUCCESS[0m 5 ms
|
||||
CSharp [0;32mSUCCESS[0m 43 ms
|
||||
D [0;32mSUCCESS[0m 7 ms
|
||||
Dart [0;32mSUCCESS[0m 12 ms
|
||||
Elixir [0;32mSUCCESS[0m 268 ms
|
||||
Erlang [0;32mSUCCESS[0m 117 ms
|
||||
Fortran [0;32mSUCCESS[0m 5 ms
|
||||
Go [0;32mSUCCESS[0m 4 ms
|
||||
Haskell [0;32mSUCCESS[0m 20 ms
|
||||
Java [0;32mSUCCESS[0m 33 ms
|
||||
JavaScript [0;32mSUCCESS[0m 67 ms
|
||||
Julia [0;32mSUCCESS[0m 126 ms
|
||||
Kotlin [0;32mSUCCESS[0m 42 ms
|
||||
Lua [0;32mSUCCESS[0m 9 ms
|
||||
Nim [0;32mSUCCESS[0m 4 ms
|
||||
Objective-C [0;32mSUCCESS[0m 5 ms
|
||||
Odin [0;32mSUCCESS[0m 4 ms
|
||||
Perl [0;32mSUCCESS[0m 29 ms
|
||||
PHP [0;32mSUCCESS[0m 52 ms
|
||||
Python [0;32mSUCCESS[0m 32 ms
|
||||
R [0;32mSUCCESS[0m 149 ms
|
||||
Ruby [0;32mSUCCESS[0m 59 ms
|
||||
Rust [0;32mSUCCESS[0m 4 ms
|
||||
Scala [0;32mSUCCESS[0m 331 ms
|
||||
Swift [0;32mSUCCESS[0m 5 ms
|
||||
TypeScript [0;32mSUCCESS[0m 1076 ms
|
||||
Zig [0;32mSUCCESS[0m 9 ms
|
||||
|
||||
=== RESULTAT (sorterat efter tid) ===
|
||||
Språk Tid (ms)
|
||||
-----------------------------------
|
||||
C 4
|
||||
C++ 4
|
||||
Go 4
|
||||
Nim 4
|
||||
Odin 4
|
||||
Rust 4
|
||||
Assembly 5
|
||||
Crystal 5
|
||||
Fortran 5
|
||||
Objective-C 5
|
||||
Swift 5
|
||||
D 7
|
||||
Lua 9
|
||||
Zig 9
|
||||
Bash 11
|
||||
Dart 12
|
||||
Haskell 20
|
||||
Brainfuck 28
|
||||
Perl 29
|
||||
Python 32
|
||||
Java 33
|
||||
Kotlin 42
|
||||
CSharp 43
|
||||
PHP 52
|
||||
Ruby 59
|
||||
JavaScript 67
|
||||
Erlang 117
|
||||
Julia 126
|
||||
R 149
|
||||
Elixir 268
|
||||
Scala 331
|
||||
TypeScript 1076
|
||||
|
||||
=== Klart ===
|
||||
|
||||
@@ -1,21 +1,72 @@
|
||||
=== Pi-beräkning med 1 decimaler (4 körningar, genomsnitt av 3 efter warmup) ===
|
||||
=== Pi-beräkning med 1 decimaler (SNABBTEST - ingen overhead) ===
|
||||
|
||||
Bash [0;32mSUCCESS[0m 30 ms, [0;34m2058922 bytes avg / [1;33m2064384 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Brainfuck [0;32mSUCCESS[0m 50 ms, [0;34m9267882 bytes avg / [1;33m9322496 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
C [0;32mSUCCESS[0m 25 ms, [0;34m1671168 bytes avg / [1;33m1671168 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
C++ [0;32mSUCCESS[0m 23 ms, [0;34m1490944 bytes avg / [1;33m1490944 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Crystal [0;32mSUCCESS[0m 32 ms, [0;34m3244032 bytes avg / [1;33m3244032 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
CSharp [0;32mSUCCESS[0m 66 ms, [0;34m41473365 bytes avg / [1;33m41517056 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
D [0;32mSUCCESS[0m 30 ms, [0;34m2457600 bytes avg / [1;33m2473984 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Dart [0;32mSUCCESS[0m 34 ms, [0;34m14488917 bytes avg / [1;33m14532608 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Elixir [0;32mSUCCESS[0m 401 ms, [0;34m89205418 bytes avg / [1;33m89817088 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Erlang [0;32mSUCCESS[0m 176 ms, [0;34m77359786 bytes avg / [1;33m77856768 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Fortran [0;32mSUCCESS[0m 31 ms, [0;34m1802240 bytes avg / [1;33m1802240 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Go [0;32mSUCCESS[0m 24 ms, [0;34m3932160 bytes avg / [1;33m3981312 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Haskell [0;32mSUCCESS[0m 40 ms, [0;34m11894784 bytes avg / [1;33m11894784 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Java [0;32mSUCCESS[0m 122 ms, [0;34m42953386 bytes avg / [1;33m43040768 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
JavaScript [0;32mSUCCESS[0m 109 ms, [0;34m38387712 bytes avg / [1;33m38518784 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Julia [0;32mSUCCESS[0m 171 ms, [0;34m235869525 bytes avg / [1;33m235929600 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Kotlin [0;32mSUCCESS[0m 79 ms, [0;34m45148842 bytes avg / [1;33m45236224 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Objective-C [0;32mSUCCESS[0m 22 ms, [0;34m6078464 bytes avg / [1;33m6078464 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Scala
|
||||
Assembly [0;32mSUCCESS[0m 5 ms
|
||||
Bash [0;32mSUCCESS[0m 12 ms
|
||||
Brainfuck [0;32mSUCCESS[0m 29 ms
|
||||
C [0;32mSUCCESS[0m 4 ms
|
||||
C++ [0;32mSUCCESS[0m 5 ms
|
||||
Crystal [0;32mSUCCESS[0m 5 ms
|
||||
CSharp [0;32mSUCCESS[0m 35 ms
|
||||
D [0;32mSUCCESS[0m 7 ms
|
||||
Dart [0;32mSUCCESS[0m 16 ms
|
||||
Elixir [0;32mSUCCESS[0m 244 ms
|
||||
Erlang [0;32mSUCCESS[0m 109 ms
|
||||
Fortran [0;32mSUCCESS[0m 5 ms
|
||||
Go [0;32mSUCCESS[0m 4 ms
|
||||
Haskell [0;32mSUCCESS[0m 18 ms
|
||||
Java [0;32mSUCCESS[0m 32 ms
|
||||
JavaScript [0;32mSUCCESS[0m 55 ms
|
||||
Julia [0;32mSUCCESS[0m 128 ms
|
||||
Kotlin [0;32mSUCCESS[0m 39 ms
|
||||
Lua [0;32mSUCCESS[0m 9 ms
|
||||
Nim [0;32mSUCCESS[0m 4 ms
|
||||
Objective-C [0;32mSUCCESS[0m 5 ms
|
||||
Odin [0;32mSUCCESS[0m 4 ms
|
||||
Perl [0;32mSUCCESS[0m 27 ms
|
||||
PHP [0;32mSUCCESS[0m 54 ms
|
||||
Python [0;32mSUCCESS[0m 34 ms
|
||||
R [0;32mSUCCESS[0m 142 ms
|
||||
Ruby [0;32mSUCCESS[0m 58 ms
|
||||
Rust [0;32mSUCCESS[0m 4 ms
|
||||
Scala [0;32mSUCCESS[0m 391 ms
|
||||
Swift [0;32mSUCCESS[0m 5 ms
|
||||
TypeScript [0;32mSUCCESS[0m 956 ms
|
||||
Zig [0;32mSUCCESS[0m 9 ms
|
||||
|
||||
=== RESULTAT (sorterat efter tid) ===
|
||||
Språk Tid (ms)
|
||||
-----------------------------------
|
||||
C 4
|
||||
Go 4
|
||||
Nim 4
|
||||
Odin 4
|
||||
Rust 4
|
||||
Assembly 5
|
||||
C++ 5
|
||||
Crystal 5
|
||||
Fortran 5
|
||||
Objective-C 5
|
||||
Swift 5
|
||||
D 7
|
||||
Lua 9
|
||||
Zig 9
|
||||
Bash 12
|
||||
Dart 16
|
||||
Haskell 18
|
||||
Perl 27
|
||||
Brainfuck 29
|
||||
Java 32
|
||||
Python 34
|
||||
CSharp 35
|
||||
Kotlin 39
|
||||
PHP 54
|
||||
JavaScript 55
|
||||
Ruby 58
|
||||
Erlang 109
|
||||
Julia 128
|
||||
R 142
|
||||
Elixir 244
|
||||
Scala 391
|
||||
TypeScript 956
|
||||
|
||||
=== Klart ===
|
||||
|
||||
@@ -1,35 +1,72 @@
|
||||
=== Pi-beräkning med 2000 decimaler (4 körningar, genomsnitt av 3 efter warmup) ===
|
||||
=== Pi-beräkning med 2000 decimaler (SNABBTEST - ingen overhead) ===
|
||||
|
||||
Bash [0;32mSUCCESS[0m 104 ms, [0;34m2048000 bytes avg / [1;33m2048000 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Brainfuck [0;32mSUCCESS[0m 47 ms, [0;34m9409877 bytes avg / [1;33m9420800 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
C [0;32mSUCCESS[0m 21 ms, [0;34m1736704 bytes avg / [1;33m1736704 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
C++ [0;32mSUCCESS[0m 26 ms, [0;34m1774933 bytes avg / [1;33m1802240 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Crystal [0;32mSUCCESS[0m 22 ms, [0;34m4265301 bytes avg / [1;33m4276224 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
CSharp [0;32mSUCCESS[0m 53 ms, [0;34m44034730 bytes avg / [1;33m44089344 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
D [0;32mSUCCESS[0m 21 ms, [0;34m3506176 bytes avg / [1;33m3506176 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Dart [0;32mSUCCESS[0m 37 ms, [0;34m17159509 bytes avg / [1;33m17186816 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Elixir [0;32mSUCCESS[0m 303 ms, [0;34m92258304 bytes avg / [1;33m92487680 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Erlang [0;32mSUCCESS[0m 141 ms, [0;34m80631125 bytes avg / [1;33m81346560 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Fortran [0;32mSUCCESS[0m 61 ms, [0;34m1862314 bytes avg / [1;33m1867776 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Go [0;32mSUCCESS[0m 20 ms, [0;34m5204650 bytes avg / [1;33m5242880 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Haskell [0;32mSUCCESS[0m 33 ms, [0;34m12140544 bytes avg / [1;33m12140544 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Java [0;32mSUCCESS[0m 62 ms, [0;34m49632597 bytes avg / [1;33m50184192 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
JavaScript [0;32mSUCCESS[0m 498 ms, [0;34m55252309 bytes avg / [1;33m55721984 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Julia [0;32mSUCCESS[0m 146 ms, [0;34m236055210 bytes avg / [1;33m236109824 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Kotlin [0;32mSUCCESS[0m 66 ms, [0;34m50681173 bytes avg / [1;33m50790400 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Objective-C [0;32mSUCCESS[0m 23 ms, [0;34m6122154 bytes avg / [1;33m6127616 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Scala [0;32mSUCCESS[0m 358 ms, [0;34m60790101 bytes avg / [1;33m61341696 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
TypeScript [0;32mSUCCESS[0m 1296 ms, [0;34m223188309 bytes avg / [1;33m225001472 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Lua [0;32mSUCCESS[0m 90 ms, [0;34m2321066 bytes avg / [1;33m2326528 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Nim [0;32mSUCCESS[0m 32 ms, [0;34m2555904 bytes avg / [1;33m2555904 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Odin [0;32mSUCCESS[0m 32 ms, [0;34m10420224 bytes avg / [1;33m10436608 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Perl [0;32mSUCCESS[0m 185 ms, [0;34m12779520 bytes avg / [1;33m12812288 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
PHP [0;32mSUCCESS[0m 82 ms, [0;34m26585770 bytes avg / [1;33m26624000 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Python [0;32mSUCCESS[0m 58 ms, [0;34m10021546 bytes avg / [1;33m10092544 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
R [0;32mSUCCESS[0m 192 ms, [0;34m96747520 bytes avg / [1;33m96927744 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Ruby [0;32mSUCCESS[0m 80 ms, [0;34m31156906 bytes avg / [1;33m31162368 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Rust [0;32mSUCCESS[0m 20 ms, [0;34m1949696 bytes avg / [1;33m1966080 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Swift [0;32mSUCCESS[0m 294 ms, [0;34m6471680 bytes avg / [1;33m6471680 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Zig [0;32mSUCCESS[0m 32 ms, [0;34m2981888 bytes avg / [1;33m2981888 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Assembly [0;32mSUCCESS[0m 20 ms, [0;34m1409024 bytes avg / [1;33m1409024 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Wolfram
|
||||
Assembly [0;32mSUCCESS[0m 5 ms
|
||||
Bash [0;32mSUCCESS[0m 70 ms
|
||||
Brainfuck [0;32mSUCCESS[0m 33 ms
|
||||
C [0;32mSUCCESS[0m 5 ms
|
||||
C++ [0;32mSUCCESS[0m 12 ms
|
||||
Crystal [0;32mSUCCESS[0m 7 ms
|
||||
CSharp [0;32mSUCCESS[0m 40 ms
|
||||
D [0;32mSUCCESS[0m 11 ms
|
||||
Dart [0;32mSUCCESS[0m 20 ms
|
||||
Elixir [0;32mSUCCESS[0m 272 ms
|
||||
Erlang [0;32mSUCCESS[0m 120 ms
|
||||
Fortran [0;32mSUCCESS[0m 46 ms
|
||||
Go [0;32mSUCCESS[0m 6 ms
|
||||
Haskell [0;32mSUCCESS[0m 19 ms
|
||||
Java [0;32mSUCCESS[0m 47 ms
|
||||
JavaScript [0;32mSUCCESS[0m 506 ms
|
||||
Julia [0;32mSUCCESS[0m 130 ms
|
||||
Kotlin [0;32mSUCCESS[0m 54 ms
|
||||
Lua [0;32mSUCCESS[0m 78 ms
|
||||
Nim [0;32mSUCCESS[0m 24 ms
|
||||
Objective-C [0;32mSUCCESS[0m 6 ms
|
||||
Odin [0;32mSUCCESS[0m 24 ms
|
||||
Perl [0;32mSUCCESS[0m 176 ms
|
||||
PHP [0;32mSUCCESS[0m 63 ms
|
||||
Python [0;32mSUCCESS[0m 43 ms
|
||||
R [0;32mSUCCESS[0m 183 ms
|
||||
Ruby [0;32mSUCCESS[0m 63 ms
|
||||
Rust [0;32mSUCCESS[0m 6 ms
|
||||
Scala [0;32mSUCCESS[0m 358 ms
|
||||
Swift [0;32mSUCCESS[0m 281 ms
|
||||
TypeScript [0;32mSUCCESS[0m 1465 ms
|
||||
Zig [0;32mSUCCESS[0m 16 ms
|
||||
|
||||
=== RESULTAT (sorterat efter tid) ===
|
||||
Språk Tid (ms)
|
||||
-----------------------------------
|
||||
Assembly 5
|
||||
C 5
|
||||
Go 6
|
||||
Objective-C 6
|
||||
Rust 6
|
||||
Crystal 7
|
||||
D 11
|
||||
C++ 12
|
||||
Zig 16
|
||||
Haskell 19
|
||||
Dart 20
|
||||
Nim 24
|
||||
Odin 24
|
||||
Brainfuck 33
|
||||
CSharp 40
|
||||
Python 43
|
||||
Fortran 46
|
||||
Java 47
|
||||
Kotlin 54
|
||||
PHP 63
|
||||
Ruby 63
|
||||
Bash 70
|
||||
Lua 78
|
||||
Erlang 120
|
||||
Julia 130
|
||||
Perl 176
|
||||
R 183
|
||||
Elixir 272
|
||||
Swift 281
|
||||
Scala 358
|
||||
JavaScript 506
|
||||
TypeScript 1465
|
||||
|
||||
=== Klart ===
|
||||
|
||||
@@ -1,35 +1,72 @@
|
||||
=== Pi-beräkning med 2 decimaler (4 körningar, genomsnitt av 3 efter warmup) ===
|
||||
=== Pi-beräkning med 2 decimaler (SNABBTEST - ingen overhead) ===
|
||||
|
||||
Bash [0;32mSUCCESS[0m 25 ms, [0;34m2053461 bytes avg / [1;33m2064384 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Brainfuck [0;32mSUCCESS[0m 52 ms, [0;34m9207808 bytes avg / [1;33m9371648 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
C [0;32mSUCCESS[0m 21 ms, [0;34m1671168 bytes avg / [1;33m1671168 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
C++ [0;32mSUCCESS[0m 21 ms, [0;34m1490944 bytes avg / [1;33m1490944 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Crystal [0;32mSUCCESS[0m 23 ms, [0;34m3249493 bytes avg / [1;33m3260416 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
CSharp [0;32mSUCCESS[0m 63 ms, [0;34m41451520 bytes avg / [1;33m41467904 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
D [0;32mSUCCESS[0m 26 ms, [0;34m2463061 bytes avg / [1;33m2490368 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Dart [0;32mSUCCESS[0m 66 ms, [0;34m14532608 bytes avg / [1;33m14548992 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Elixir [0;32mSUCCESS[0m 379 ms, [0;34m89369258 bytes avg / [1;33m89604096 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Erlang [0;32mSUCCESS[0m 157 ms, [0;34m77425322 bytes avg / [1;33m77824000 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Fortran [0;32mSUCCESS[0m 23 ms, [0;34m1802240 bytes avg / [1;33m1802240 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Go [0;32mSUCCESS[0m 30 ms, [0;34m3964928 bytes avg / [1;33m3997696 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Haskell [0;32mSUCCESS[0m 33 ms, [0;34m11900245 bytes avg / [1;33m11911168 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Java [0;32mSUCCESS[0m 53 ms, [0;34m43018922 bytes avg / [1;33m43057152 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
JavaScript [0;32mSUCCESS[0m 73 ms, [0;34m38496938 bytes avg / [1;33m38633472 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Julia [0;32mSUCCESS[0m 155 ms, [0;34m235924138 bytes avg / [1;33m236126208 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Kotlin [0;32mSUCCESS[0m 63 ms, [0;34m45197994 bytes avg / [1;33m45383680 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Objective-C [0;32mSUCCESS[0m 21 ms, [0;34m6034773 bytes avg / [1;33m6045696 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Scala [0;32mSUCCESS[0m 352 ms, [0;34m55345152 bytes avg / [1;33m55476224 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
TypeScript [0;32mSUCCESS[0m 904 ms, [0;34m217716053 bytes avg / [1;33m218136576 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Lua [0;32mSUCCESS[0m 21 ms, [0;34m2086229 bytes avg / [1;33m2097152 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Nim [0;32mSUCCESS[0m 21 ms, [0;34m1523712 bytes avg / [1;33m1523712 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Odin [0;32mSUCCESS[0m 23 ms, [0;34m1605632 bytes avg / [1;33m1605632 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Perl [0;32mSUCCESS[0m 46 ms, [0;34m12528298 bytes avg / [1;33m12533760 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
PHP [0;32mSUCCESS[0m 70 ms, [0;34m26492928 bytes avg / [1;33m26525696 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Python [0;32mSUCCESS[0m 46 ms, [0;34m9710250 bytes avg / [1;33m9797632 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
R [0;32mSUCCESS[0m 168 ms, [0;34m90860202 bytes avg / [1;33m90947584 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Ruby [0;32mSUCCESS[0m 80 ms, [0;34m28868608 bytes avg / [1;33m28917760 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Rust [0;32mSUCCESS[0m 21 ms, [0;34m1622016 bytes avg / [1;33m1622016 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Swift [0;32mSUCCESS[0m 21 ms, [0;34m5958314 bytes avg / [1;33m5980160 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Zig [0;32mSUCCESS[0m 22 ms, [0;34m2981888 bytes avg / [1;33m2981888 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Assembly [0;32mSUCCESS[0m 20 ms, [0;34m1409024 bytes avg / [1;33m1409024 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Wolfram
|
||||
Assembly [0;32mSUCCESS[0m 5 ms
|
||||
Bash [0;32mSUCCESS[0m 13 ms
|
||||
Brainfuck [0;32mSUCCESS[0m 28 ms
|
||||
C [0;32mSUCCESS[0m 4 ms
|
||||
C++ [0;32mSUCCESS[0m 4 ms
|
||||
Crystal [0;32mSUCCESS[0m 5 ms
|
||||
CSharp [0;32mSUCCESS[0m 38 ms
|
||||
D [0;32mSUCCESS[0m 8 ms
|
||||
Dart [0;32mSUCCESS[0m 14 ms
|
||||
Elixir [0;32mSUCCESS[0m 271 ms
|
||||
Erlang [0;32mSUCCESS[0m 119 ms
|
||||
Fortran [0;32mSUCCESS[0m 5 ms
|
||||
Go [0;32mSUCCESS[0m 4 ms
|
||||
Haskell [0;32mSUCCESS[0m 20 ms
|
||||
Java [0;32mSUCCESS[0m 34 ms
|
||||
JavaScript [0;32mSUCCESS[0m 62 ms
|
||||
Julia [0;32mSUCCESS[0m 141 ms
|
||||
Kotlin [0;32mSUCCESS[0m 43 ms
|
||||
Lua [0;32mSUCCESS[0m 9 ms
|
||||
Nim [0;32mSUCCESS[0m 4 ms
|
||||
Objective-C [0;32mSUCCESS[0m 5 ms
|
||||
Odin [0;32mSUCCESS[0m 4 ms
|
||||
Perl [0;32mSUCCESS[0m 29 ms
|
||||
PHP [0;32mSUCCESS[0m 55 ms
|
||||
Python [0;32mSUCCESS[0m 33 ms
|
||||
R [0;32mSUCCESS[0m 152 ms
|
||||
Ruby [0;32mSUCCESS[0m 59 ms
|
||||
Rust [0;32mSUCCESS[0m 4 ms
|
||||
Scala [0;32mSUCCESS[0m 404 ms
|
||||
Swift [0;32mSUCCESS[0m 5 ms
|
||||
TypeScript [0;32mSUCCESS[0m 1057 ms
|
||||
Zig [0;32mSUCCESS[0m 10 ms
|
||||
|
||||
=== RESULTAT (sorterat efter tid) ===
|
||||
Språk Tid (ms)
|
||||
-----------------------------------
|
||||
C 4
|
||||
C++ 4
|
||||
Go 4
|
||||
Nim 4
|
||||
Odin 4
|
||||
Rust 4
|
||||
Assembly 5
|
||||
Crystal 5
|
||||
Fortran 5
|
||||
Objective-C 5
|
||||
Swift 5
|
||||
D 8
|
||||
Lua 9
|
||||
Zig 10
|
||||
Bash 13
|
||||
Dart 14
|
||||
Haskell 20
|
||||
Brainfuck 28
|
||||
Perl 29
|
||||
Python 33
|
||||
Java 34
|
||||
CSharp 38
|
||||
Kotlin 43
|
||||
PHP 55
|
||||
Ruby 59
|
||||
JavaScript 62
|
||||
Erlang 119
|
||||
Julia 141
|
||||
R 152
|
||||
Elixir 271
|
||||
Scala 404
|
||||
TypeScript 1057
|
||||
|
||||
=== Klart ===
|
||||
|
||||
@@ -1,35 +1,72 @@
|
||||
=== Pi-beräkning med 5 decimaler (4 körningar, genomsnitt av 3 efter warmup) ===
|
||||
=== Pi-beräkning med 5 decimaler (SNABBTEST - ingen overhead) ===
|
||||
|
||||
Bash [0;32mSUCCESS[0m 27 ms, [0;34m2048000 bytes avg / [1;33m2048000 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Brainfuck [0;32mSUCCESS[0m 44 ms, [0;34m9125888 bytes avg / [1;33m9158656 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
C [0;32mSUCCESS[0m 21 ms, [0;34m1671168 bytes avg / [1;33m1671168 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
C++ [0;32mSUCCESS[0m 20 ms, [0;34m1490944 bytes avg / [1;33m1490944 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Crystal [0;32mSUCCESS[0m 24 ms, [0;34m3244032 bytes avg / [1;33m3244032 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
CSharp [0;32mSUCCESS[0m 51 ms, [0;34m41385984 bytes avg / [1;33m41418752 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
D [0;32mSUCCESS[0m 22 ms, [0;34m2457600 bytes avg / [1;33m2457600 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Dart [0;32mSUCCESS[0m 27 ms, [0;34m14467072 bytes avg / [1;33m14516224 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Elixir [0;32mSUCCESS[0m 303 ms, [0;34m89134421 bytes avg / [1;33m89554944 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Erlang [0;32mSUCCESS[0m 131 ms, [0;34m77529088 bytes avg / [1;33m78118912 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Fortran [0;32mSUCCESS[0m 20 ms, [0;34m1802240 bytes avg / [1;33m1802240 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Go [0;32mSUCCESS[0m 20 ms, [0;34m3877546 bytes avg / [1;33m3915776 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Haskell [0;32mSUCCESS[0m 31 ms, [0;34m11894784 bytes avg / [1;33m11894784 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Java [0;32mSUCCESS[0m 46 ms, [0;34m42980693 bytes avg / [1;33m42991616 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
JavaScript [0;32mSUCCESS[0m 78 ms, [0;34m38338560 bytes avg / [1;33m38404096 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Julia [0;32mSUCCESS[0m 160 ms, [0;34m235864064 bytes avg / [1;33m235978752 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Kotlin [0;32mSUCCESS[0m 59 ms, [0;34m45143381 bytes avg / [1;33m45154304 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Objective-C [0;32mSUCCESS[0m 20 ms, [0;34m6029312 bytes avg / [1;33m6029312 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Scala [0;32mSUCCESS[0m 386 ms, [0;34m55995050 bytes avg / [1;33m58245120 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
TypeScript [0;32mSUCCESS[0m 886 ms, [0;34m217841664 bytes avg / [1;33m218775552 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Lua [0;32mSUCCESS[0m 20 ms, [0;34m2086229 bytes avg / [1;33m2097152 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Nim [0;32mSUCCESS[0m 19 ms, [0;34m1523712 bytes avg / [1;33m1523712 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Odin [0;32mSUCCESS[0m 20 ms, [0;34m1611093 bytes avg / [1;33m1622016 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Perl [0;32mSUCCESS[0m 43 ms, [0;34m12517376 bytes avg / [1;33m12533760 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
PHP [0;32mSUCCESS[0m 67 ms, [0;34m26471082 bytes avg / [1;33m26525696 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Python [0;32mSUCCESS[0m 53 ms, [0;34m9830400 bytes avg / [1;33m9846784 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
R [0;32mSUCCESS[0m 170 ms, [0;34m90778282 bytes avg / [1;33m90931200 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Ruby [0;32mSUCCESS[0m 79 ms, [0;34m28813994 bytes avg / [1;33m28835840 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Rust [0;32mSUCCESS[0m 20 ms, [0;34m1622016 bytes avg / [1;33m1622016 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Swift [0;32mSUCCESS[0m 21 ms, [0;34m5947392 bytes avg / [1;33m5947392 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Zig [0;32mSUCCESS[0m 21 ms, [0;34m2981888 bytes avg / [1;33m2981888 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Assembly [0;32mSUCCESS[0m 20 ms, [0;34m1409024 bytes avg / [1;33m1409024 bytes peak, [1;33m0% CPU avg / 0% CPU peak[0m
|
||||
Wolfram
|
||||
Assembly [0;32mSUCCESS[0m 6 ms
|
||||
Bash [0;32mSUCCESS[0m 13 ms
|
||||
Brainfuck [0;32mSUCCESS[0m 29 ms
|
||||
C [0;32mSUCCESS[0m 4 ms
|
||||
C++ [0;32mSUCCESS[0m 4 ms
|
||||
Crystal [0;32mSUCCESS[0m 5 ms
|
||||
CSharp [0;32mSUCCESS[0m 40 ms
|
||||
D [0;32mSUCCESS[0m 8 ms
|
||||
Dart [0;32mSUCCESS[0m 13 ms
|
||||
Elixir [0;32mSUCCESS[0m 286 ms
|
||||
Erlang [0;32mSUCCESS[0m 125 ms
|
||||
Fortran [0;32mSUCCESS[0m 5 ms
|
||||
Go [0;32mSUCCESS[0m 4 ms
|
||||
Haskell [0;32mSUCCESS[0m 19 ms
|
||||
Java [0;32mSUCCESS[0m 35 ms
|
||||
JavaScript [0;32mSUCCESS[0m 64 ms
|
||||
Julia [0;32mSUCCESS[0m 135 ms
|
||||
Kotlin [0;32mSUCCESS[0m 45 ms
|
||||
Lua [0;32mSUCCESS[0m 9 ms
|
||||
Nim [0;32mSUCCESS[0m 4 ms
|
||||
Objective-C [0;32mSUCCESS[0m 5 ms
|
||||
Odin [0;32mSUCCESS[0m 4 ms
|
||||
Perl [0;32mSUCCESS[0m 30 ms
|
||||
PHP [0;32mSUCCESS[0m 57 ms
|
||||
Python [0;32mSUCCESS[0m 37 ms
|
||||
R [0;32mSUCCESS[0m 157 ms
|
||||
Ruby [0;32mSUCCESS[0m 62 ms
|
||||
Rust [0;32mSUCCESS[0m 4 ms
|
||||
Scala [0;32mSUCCESS[0m 355 ms
|
||||
Swift [0;32mSUCCESS[0m 5 ms
|
||||
TypeScript [0;32mSUCCESS[0m 1227 ms
|
||||
Zig [0;32mSUCCESS[0m 9 ms
|
||||
|
||||
=== RESULTAT (sorterat efter tid) ===
|
||||
Språk Tid (ms)
|
||||
-----------------------------------
|
||||
C 4
|
||||
C++ 4
|
||||
Go 4
|
||||
Nim 4
|
||||
Odin 4
|
||||
Rust 4
|
||||
Crystal 5
|
||||
Fortran 5
|
||||
Objective-C 5
|
||||
Swift 5
|
||||
Assembly 6
|
||||
D 8
|
||||
Lua 9
|
||||
Zig 9
|
||||
Bash 13
|
||||
Dart 13
|
||||
Haskell 19
|
||||
Brainfuck 29
|
||||
Perl 30
|
||||
Java 35
|
||||
Python 37
|
||||
CSharp 40
|
||||
Kotlin 45
|
||||
PHP 57
|
||||
Ruby 62
|
||||
JavaScript 64
|
||||
Erlang 125
|
||||
Julia 135
|
||||
R 157
|
||||
Elixir 286
|
||||
Scala 355
|
||||
TypeScript 1227
|
||||
|
||||
=== Klart ===
|
||||
|
||||
@@ -1,54 +0,0 @@
|
||||
# Pi Calculation Benchmark: Performance Summary
|
||||
|
||||
## Overview
|
||||
|
||||
This study compares the performance of 34 programming languages when calculating π (pi) with high precision.
|
||||
|
||||
## 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)
|
||||
|
||||
## Method: Machin's Formula
|
||||
|
||||
All implementations use Machin's formula for π calculation:
|
||||
|
||||
```
|
||||
π/4 = 4·arctan(1/5) - arctan(1/239)
|
||||
```
|
||||
|
||||
## Performance Reports by Decimal Level
|
||||
|
||||
- [1 Decimal](reports/1_decimals.md) - Minimal precision
|
||||
- [2 Decimals](reports/2_decimals.md) - Low precision
|
||||
- [5 Decimals](reports/5_decimals.md) - Medium precision
|
||||
- [10 Decimals](reports/10_decimals.md) - Standard precision
|
||||
- [100 Decimals](reports/100_decimals.md) - High precision
|
||||
- [1000 Decimals](reports/1000_decimals.md) - Very high precision
|
||||
- [2000 Decimals](reports/2000_decimals.md) - Extreme precision
|
||||
|
||||
## Key Findings
|
||||
|
||||
### Fastest Languages (100 decimals)
|
||||
1. **C** - 9ms (compiled)
|
||||
2. **Assembly** - 9ms (compiled)
|
||||
3. **Rust** - 9ms (compiled)
|
||||
4. **Go** - 9ms (compiled)
|
||||
5. **Nim** - 9ms (compiled)
|
||||
|
||||
### Memory Efficiency (100 decimals)
|
||||
- **C, Rust, Assembly**: < 1 MB
|
||||
- **JIT Languages**: ~2 MB
|
||||
- **Interpreted Languages**: ~2 MB
|
||||
|
||||
### Performance Scaling
|
||||
- Compiled languages maintain consistent performance across all decimal levels
|
||||
- JIT languages show startup overhead but good performance
|
||||
- Interpreted languages scale poorly with increased precision
|
||||
|
||||
---
|
||||
|
||||
*Generated from Pi Calculation Benchmark*
|
||||