Commit Graph

1 Commits

Author SHA1 Message Date
Jukka Aho 995f01ca9e bench: Add comprehensive linear elastic material analysis
Performs detailed performance analysis of LinearElastic material model:
1. Execution time benchmarking (@btime)
2. Memory allocation tracking (@allocated)
3. Type stability verification (@code_warntype)
4. LLVM IR inspection (inlining, vectorization)
5. Native assembly analysis (SIMD instructions)

Validates implementation quality:
- Zero allocations (stack-only computation)
- Fully inlined (no function calls in LLVM IR)
- SIMD optimized (AVX/AVX2 vector instructions)
- FMA instructions (fused multiply-add for optimal performance)

Calculates throughput (~millions of stress evaluations per second per core)
and compares actual operations against theoretical minimum FLOPs for
Hooke's law: σ = λ·tr(ε)·I + 2μ·ε
2025-11-12 00:17:08 +02:00