Commit Graph

19 Commits

Author SHA1 Message Date
Ein Anderssono 09d6009074 Show actual bytes values instead of MB conversion
- Removed MB conversion in run_all.sh
- Now displays actual bytes values from memory profiling
- Updated output to show 'bytes avg / bytes peak'
- More accurate representation of memory usage
- Consistent with timeline data which is already in bytes
2026-04-23 09:55:11 +02:00
Ein Anderssono c4d5ed0500 Convert all memory values from MB to bytes in README
- Updated all memory charts to show bytes instead of MB
- Converted y-axis ranges from MB to bytes (e.g., 3 MB -> 3000000 bytes)
- Converted all memory values in charts (e.g., 2 MB -> 2000000 bytes)
- Updated all table headers to show 'Memory (bytes)'
- Better for comparing memory usage across all languages
2026-04-23 09:52:38 +02:00
Ein Anderssono b39062c62d revmoed swedish 2026-04-23 09:48:37 +02:00
Ein Anderssono fa0097404a Display memory in bytes instead of MB for consistency
- Changed output to show bytes instead of MB
- Updated header to show 'Minne (bytes)'
- Better for comparing memory usage across all languages
- Memory data already collected in bytes from ps command
2026-04-23 01:45:43 +02:00
Ein Anderssono f81fbb8d25 Change sampling interval to 1ms for better accuracy
- Changed from 10ms to 1ms sampling interval
- Better captures data for fast programs
- Memory already sampled in bytes for consistency
- Will provide more detailed timeline data
2026-04-23 01:41:07 +02:00
Ein Anderssono a0394572cf 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
2026-04-23 01:37:58 +02:00
Ein Anderssono 9795bd6e96 Update Mermaid charts with actual test data
- Updated compiled languages chart with real performance data
- Updated JIT-compiled languages chart with actual measurements
- Updated interpreted languages chart with test results
- Updated slowest languages chart with real data
- All charts now reflect actual benchmark results from 100 decimal tests
2026-04-23 01:37:01 +02:00
Ein Anderssono 3ef7736b1d Add comprehensive performance scaling data
- Added performance tables for 1, 2, 5, 10, 100, 1000, 2000 decimals
- Shows how each language scales with increasing precision
- Includes memory usage data for all decimal counts
- Added key observations about scaling behavior
- Documented performance leaders and memory efficiency patterns
2026-04-23 01:32:04 +02:00
Ein Anderssono c989bb8cb4 Convert README to English with natural flow
- Recreated entire README in English
- Preserved all technical details and data
- Improved flow and readability
- Kept Swedish version as README_SV.md for reference
- All charts and analysis now in English
2026-04-23 01:15:07 +02:00
Ein Anderssono c5fc60b89c Improve timeline diagrams with better scaling and analysis
- Scale x-axis to show full program lifetime
- Adjust y-axis per language for clarity
- Add detailed analysis for each diagram
- Group diagrams by language type (compiled, interpreted)
- Add comparison charts for fast and slow languages
- Explain memory patterns and insights
2026-04-23 01:06:47 +02:00
Ein Anderssono cbc9eef036 Add resource usage timeline diagrams to README
- Added Mermaid XY charts showing memory usage over time
- Individual charts for Elixir, TypeScript, Dart, Haskell, C
- Comparison chart for fast languages
- Shows how memory usage varies during program execution
- Based on actual timeline data from benchmark runs
2026-04-23 01:03:40 +02:00
Ein Anderssono 8723db1033 Add timeline visualization and fix resource profiling
- Save timeline data for each run (time, memory, CPU)
- Create timelines directory structure
- Add Python visualization script for charts
- Fix integer comparison errors in profiling
- Collect samples throughout program lifetime
2026-04-23 01:00:42 +02:00
Ein Anderssono 83d3c1ba46 Add time-series resource profiling
- Track memory and CPU usage over program lifetime
- Store elapsed time with each sample
- Generate timeline data for visualization
- Enable detailed performance analysis
2026-04-23 00:58:15 +02:00
Ein Anderssono 5bcfbc0b52 Add Mermaid performance diagrams with actual test data
- Added XY charts for compiled, JIT, and interpreted languages
- Charts show execution time and memory usage from real tests
- Data collected from actual benchmark runs on Apple A18 Pro
- All measurements from 100 decimal test runs
- Memory profiling shows 0-5MB usage across languages
- CPU profiling shows 0% (processes too fast to sample)
2026-04-23 00:56:53 +02:00
Ein Anderssono f0516beadf Add CPU profiling to run_all.sh
- Added get_cpu_usage() function to sample CPU percentage
- Updated profile_resources() to profile both memory and CPU
- Modified run_program() to track CPU usage alongside memory
- Updated output format to show CPU statistics
- Summary now displays: Time, Memory (avg/peak), CPU (avg/peak)
- Both memory and CPU are sampled every 10ms during execution
2026-04-23 00:52:39 +02:00
Ein Anderssono cb9363dc26 Update AGENT.md with English translation and project status
- Translated beginning of AGENT.md to English
- Added project status section with current languages (34 total)
- Added test environment specifications (Apple A18 Pro, 8GB RAM)
- Added performance results summary
- Added binary size information
- Partial translation in progress
2026-04-23 00:50:13 +02:00
Ein Anderssono 379ee1da35 Add binary sizes and memory profiling
- Added binary size section to README with actual file sizes
- Updated run_all.sh to profile memory usage during execution
- Memory profiling shows average and peak memory consumption
- All data from actual measurements on Apple A18 Pro
- Binary sizes range from 103B (wrapper scripts) to 13M (Haskell)
2026-04-23 00:47:33 +02:00
Ein Anderssono 3912ac9e6e Update README with scientific analysis and actual test results
- Added system specifications (Apple A18 Pro, 8 GB RAM)
- Included actual benchmark results for 100, 1000, and 10000 decimals
- Scientific analysis of performance differences
- Detailed technical explanations for each language
- All data from real test runs on actual hardware
- Removed hypothetical examples, using only measured data
2026-04-23 00:38:21 +02:00
Ein Anderssono 54d2fecee0 Initial commit: Pi calculation benchmark with 34 languages
- Added implementations for: bash, brainfuck, c, cpp, crystal, csharp, d, dart, elixir, erlang, fortran, go, haskell, java, javascript, julia, kotlin, objective-c, scala, typescript, lua, nim, odin, perl, php, python, r, ruby, rust, swift, zig, assembly, vimscript, wolfram
- All implementations use Machin's formula: π/4 = 4*arctan(1/5) - arctan(1/239)
- Build system with ./build.sh, test system with ./test.sh
- Performance testing with ./run_all.sh
- Comprehensive README.md explaining performance differences
- Test framework verifies correctness against known π values
2026-04-23 00:26:18 +02:00