Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Template engines benchmark

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 config
Octocat-spinner-32 csv
Octocat-spinner-32 graph
Octocat-spinner-32 library
Octocat-spinner-32 template_engine
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 composer.json
Octocat-spinner-32 index.php
Octocat-spinner-32 phpcomparison.net.sql
Octocat-spinner-32 save.php
Octocat-spinner-32 source.php
Octocat-spinner-32 test.php
Octocat-spinner-32 test_one.php
README.md

PHP Template Engine Comparison

Speed matters... sometimes...

This benchmark tests the speed and memory consumption of PHP template engines. You can fork the project and contribute by adding your favorite template engine.

How to run the benchmark

  1. Add your database login details to the config/db.php file (make sure the user has permission to create tables).
  2. Run the test.php from your browser. Once it's completed, the results will be saved as CSV files in the csv folder.
  3. To draw the results you need the Charts class, which is not released open source with this package.
  4. View and compare results by visiting index.php.
  5. To add more engines to the test, upload the engine to the template_engines folder and re-create the assign and loop tests. Check out the php engine for a simple example of what is required, then add your engine to the library/config.php file.
Something went wrong with that request. Please try again.