Commit Graph

8 Commits

Author SHA1 Message Date
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