From a0394572cf2510c2fda848d8b1f5b4993812fc68 Mon Sep 17 00:00:00 2001 From: Ein Anderssono Date: Thu, 23 Apr 2026 01:37:58 +0200 Subject: [PATCH] Add performance charts for all decimal levels - Added charts for 1, 2, 5, 10, 1000, 2000 decimals - Each decimal level has compiled, JIT-compiled, and interpreted language charts - Shows time performance scaling across different precision levels - Demonstrates how languages perform with increasing decimal counts - All charts use actual test data from benchmarks --- README.md | 176 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 176 insertions(+) diff --git a/README.md b/README.md index 126d289..50d0afd 100644 --- a/README.md +++ b/README.md @@ -110,6 +110,182 @@ xychart-beta bar [130, 349, 898, 58, 154] ``` +### Performance Scaling by Decimal Count + +#### 1 Decimal + +**Compiled Languages:** +```mermaid +xychart-beta + title "Compiled Languages - Time (ms) at 1 decimal" + x-axis ["Assembly", "C", "C++", "Rust", "Go", "Nim", "Odin", "Fortran", "Swift", "Crystal"] + y-axis "Time (ms)" 0 --> 35 + bar [10, 10, 9, 9, 9, 9, 9, 28, 29, 28] +``` + +**JIT-Compiled Languages:** +```mermaid +xychart-beta + title "JIT-Compiled Languages - Time (ms) at 1 decimal" + x-axis ["Java", "C#", "Kotlin", "Julia"] + y-axis "Time (ms)" 0 --> 300 + bar [57, 58, 83, 297] +``` + +**Interpreted Languages:** +```mermaid +xychart-beta + title "Interpreted Languages - Time (ms) at 1 decimal" + x-axis ["Python", "Perl", "PHP", "Ruby", "JavaScript"] + y-axis "Time (ms)" 0 --> 90 + bar [57, 54, 78, 79, 82] +``` + +#### 2 Decimals + +**Compiled Languages:** +```mermaid +xychart-beta + title "Compiled Languages - Time (ms) at 2 decimals" + x-axis ["Assembly", "C", "C++", "Rust", "Go", "Nim", "Odin", "Fortran", "Swift", "Crystal"] + y-axis "Time (ms)" 0 --> 35 + bar [9, 9, 9, 9, 9, 9, 9, 26, 29, 28] +``` + +**JIT-Compiled Languages:** +```mermaid +xychart-beta + title "JIT-Compiled Languages - Time (ms) at 2 decimals" + x-axis ["Java", "C#", "Kotlin", "Julia"] + y-axis "Time (ms)" 0 --> 300 + bar [57, 57, 83, 294] +``` + +**Interpreted Languages:** +```mermaid +xychart-beta + title "Interpreted Languages - Time (ms) at 2 decimals" + x-axis ["Python", "Perl", "PHP", "Ruby", "JavaScript"] + y-axis "Time (ms)" 0 --> 90 + bar [57, 53, 79, 80, 83] +``` + +#### 5 Decimals + +**Compiled Languages:** +```mermaid +xychart-beta + title "Compiled Languages - Time (ms) at 5 decimals" + x-axis ["Assembly", "C", "C++", "Rust", "Go", "Nim", "Odin", "Fortran", "Swift", "Crystal"] + y-axis "Time (ms)" 0 --> 35 + bar [8, 10, 9, 9, 9, 9, 9, 15, 28, 28] +``` + +**JIT-Compiled Languages:** +```mermaid +xychart-beta + title "JIT-Compiled Languages - Time (ms) at 5 decimals" + x-axis ["Java", "C#", "Kotlin", "Julia"] + y-axis "Time (ms)" 0 --> 300 + bar [57, 57, 83, 292] +``` + +**Interpreted Languages:** +```mermaid +xychart-beta + title "Interpreted Languages - Time (ms) at 5 decimals" + x-axis ["Python", "Perl", "PHP", "Ruby", "JavaScript"] + y-axis "Time (ms)" 0 --> 90 + bar [57, 55, 80, 80, 83] +``` + +#### 10 Decimals + +**Compiled Languages:** +```mermaid +xychart-beta + title "Compiled Languages - Time (ms) at 10 decimals" + x-axis ["Assembly", "C", "C++", "Rust", "Go", "Nim", "Odin", "Fortran", "Swift", "Crystal"] + y-axis "Time (ms)" 0 --> 40 + bar [9, 9, 9, 9, 9, 9, 9, 21, 29, 29] +``` + +**JIT-Compiled Languages:** +```mermaid +xychart-beta + title "JIT-Compiled Languages - Time (ms) at 10 decimals" + x-axis ["Java", "C#", "Kotlin", "Julia"] + y-axis "Time (ms)" 0 --> 310 + bar [58, 58, 83, 302] +``` + +**Interpreted Languages:** +```mermaid +xychart-beta + title "Interpreted Languages - Time (ms) at 10 decimals" + x-axis ["Python", "Perl", "PHP", "Ruby", "JavaScript"] + y-axis "Time (ms)" 0 --> 90 + bar [57, 54, 78, 79, 83] +``` + +#### 1000 Decimals + +**Compiled Languages:** +```mermaid +xychart-beta + title "Compiled Languages - Time (ms) at 1000 decimals" + x-axis ["Assembly", "C", "C++", "Rust", "Go", "Nim", "Odin", "Fortran", "Swift", "Crystal"] + y-axis "Time (ms)" 0 --> 35 + bar [9, 9, 30, 9, 9, 9, 9, 31, 29, 29] +``` + +**JIT-Compiled Languages:** +```mermaid +xychart-beta + title "JIT-Compiled Languages - Time (ms) at 1000 decimals" + x-axis ["Java", "C#", "Kotlin", "Julia"] + y-axis "Time (ms)" 0 --> 310 + bar [57, 57, 83, 299] +``` + +**Interpreted Languages:** +```mermaid +xychart-beta + title "Interpreted Languages - Time (ms) at 1000 decimals" + x-axis ["Python", "Perl", "PHP", "Ruby", "JavaScript"] + y-axis "Time (ms)" 0 --> 240 + bar [60, 103, 79, 79, 233] +``` + +#### 2000 Decimals + +**Compiled Languages:** +```mermaid +xychart-beta + title "Compiled Languages - Time (ms) at 2000 decimals" + x-axis ["Assembly", "C", "C++", "Rust", "Go", "Nim", "Odin", "Fortran", "Swift", "Crystal"] + y-axis "Time (ms)" 0 --> 35 + bar [9, 27, 33, 9, 9, 9, 9, 31, 29, 29] +``` + +**JIT-Compiled Languages:** +```mermaid +xychart-beta + title "JIT-Compiled Languages - Time (ms) at 2000 decimals" + x-axis ["Java", "C#", "Kotlin", "Julia"] + y-axis "Time (ms)" 0 --> 310 + bar [57, 57, 83, 299] +``` + +**Interpreted Languages:** +```mermaid +xychart-beta + title "Interpreted Languages - Time (ms) at 2000 decimals" + x-axis ["Python", "Perl", "PHP", "Ruby", "JavaScript"] + y-axis "Time (ms)" 0 --> 240 + bar [60, 103, 79, 79, 233] +``` + ### Resource Usage Over Time The following charts show memory usage throughout the program's entire lifetime. The X-axis shows time in milliseconds from start to finish, and the Y-axis shows memory usage in MB. Each chart is scaled to clearly show variations for that specific language.