mirror of
https://github.com/semihalev/twig.git
synced 2026-03-14 13:55:46 +01:00
Latest benchmark runs show dramatic performance improvements: - Twig is now 57x faster than Go's html/template for complex templates - Memory usage reduced by 90% compared to standard Go templates - Performance on medium templates improved to 0.14 µs/op from 0.35 µs/op - Simple template rendering improved to 0.28 µs/op from 0.47 µs/op These improvements reflect the optimizations from object pooling and filter chain handling optimizations in recent commits. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
439 B
439 B
Memory Benchmark Results (as of 2025-03-11)
Environment:
- Go version: go1.24.1
- CPU: 8 cores
- GOMAXPROCS: 8
| Engine | Time (µs/op) | Memory Usage (KB/op) |
|---|---|---|
| Twig | 0.23 | 0.12 |
| Go Template | 13.14 | 1.29 |
Twig is 0.02x faster than Go's template engine. Twig uses 0.10x less memory than Go's template engine.