Skip to content

Instantly share code, notes, and snippets.

@TimWolla
Created June 20, 2013 19:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TimWolla/5825732 to your computer and use it in GitHub Desktop.
Save TimWolla/5825732 to your computer and use it in GitHub Desktop.
Smarty3 vs Twig vs Cytro
Generate templates... Done
Testing a lot output...
smarty3: !compiled and !loaded 8.6070 sec, 14.8 MiB
smarty3: compiled and !loaded 0.0434 sec, 7.8 MiB
smarty3: compiled and loaded 0.0058 sec, 7.8 MiB
twig: !compiled and !loaded 4.2420 sec, 67.2 MiB
twig: compiled and !loaded 0.0927 sec, 16.0 MiB
twig: compiled and loaded 0.0038 sec, 16.0 MiB
cytro: !compiled and !loaded 0.9852 sec, 8.2 MiB
cytro: compiled and !loaded 0.0403 sec, 5.9 MiB
cytro: compiled and loaded 0.0022 sec, 5.9 MiB
Testing 'foreach' of big array...
smarty3: !compiled and !loaded 0.0515 sec, 5.4 MiB
smarty3: compiled and !loaded 0.0056 sec, 3.0 MiB
smarty3: compiled and loaded 0.0075 sec, 3.0 MiB
twig: !compiled and !loaded 0.0470 sec, 4.0 MiB
twig: compiled and !loaded 0.0394 sec, 2.7 MiB
twig: compiled and loaded 0.0452 sec, 2.7 MiB
cytro: !compiled and !loaded 0.0132 sec, 3.0 MiB
cytro: compiled and !loaded 0.0057 sec, 2.4 MiB
cytro: compiled and loaded 0.0049 sec, 2.4 MiB
Testing deep 'inheritance'...
smarty3: !compiled and !loaded 0.7222 sec, 9.5 MiB
smarty3: compiled and !loaded 0.0022 sec, 2.9 MiB
smarty3: compiled and loaded 0.0002 sec, 2.9 MiB
twig: !compiled and !loaded 0.7708 sec, 10.5 MiB
twig: compiled and !loaded 0.0597 sec, 6.0 MiB
twig: compiled and loaded 0.0037 sec, 6.0 MiB
cytro: !compiled and !loaded 0.1541 sec, 3.0 MiB
cytro: compiled and !loaded 0.0013 sec, 2.4 MiB
cytro: compiled and loaded 0.0001 sec, 2.4 MiB
Done. Cleanup.
Smarty3 vs Cytro (more details)
Coming soon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment