Skip to content

Commit e6cbc39

Browse files
committed
Merge pull request #1 from Synchro/master
General cleanup
2 parents ed8cc0f + d2f3972 commit e6cbc39

133 files changed

Lines changed: 21615 additions & 21645 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
library/config.db.local.php

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#PHP Template Engine Comparison
2+
##Speed matters... sometimes...
3+
4+
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.
5+
6+
##How to run the benchmark
7+
8+
1. Add your database login details to the `library/conf.db.php` file (make sure the user has permission to create tables).
9+
2. Run the `test.php` from your browser. Once it's completed, the results will be saved as CSV files in the `csv` folder.
10+
3. To draw the results you need the Charts class, which is not released open source with this package.
11+
4. View and compare results by visiting `index.php`.
12+
5. To add more engines to the test, upload the engine to the `template_engines` folder and re-create the `assign` and `loop` tests.
13+
Check out the `php` engine for a simple example of what is required, then add your engine to the `library/config.php` file.

README.txt

Lines changed: 0 additions & 19 deletions
This file was deleted.

graph/line.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function drawChart() {
9090
if( $type == 'memory' )
9191
echo "Memory (KB)";
9292
else
93-
echo "Execution Time (µs)"
93+
echo "Execution Time (μs)"
9494
?>
9595
<div id="line_chart"></div>
9696

0 commit comments

Comments
 (0)