A blogger asked me "Do you know any professional benchmarks for templates?" So I made this one.
Now, this project is getting the attention of the international PHP developers community, which is divided
in two. One says PHP itself is the best template engine, the other says PHP needs template engines.
With these benchmark & charts you can compare the performances of template engines vs PHP templates, and make your choice.
This benchmark is performed by executing an assignment and a loop test. Each template engine is executed 10 times foreach single test. The test is executed on compiled template. The charts shows the average execution time and memory consumed for each test. Have fun!
This project is open source click here to download the benchmark! and here follow me on Twitter
|Test||tot. time||tot. memory||package size|
|php 5.4.4-14+deb7u5||2001 μs||12.16 KB||4 KB|
|raintpl 2.7.0||5113 μs||321.86 KB||37 KB|
|twig 1.5.1||17671 μs||844.86 KB||647 KB|
|smarty 3.1.11||20411 μs||1.52 MB||1100 KB|