Benchmark 1: variable replacement
About 1MB data is created, parsed and displayed ... this might take a while. In this test we have a 10kb text file which has 21 variable in it. Different amount of variables is set in template engine, we measure how fast it can parse this text. If you choose to look at the source code of this site, you will find this text very often, because a template class is slower if it actually has to display the text. I put it in "<!-- -->" so it is not displayed here.
View source code of this benchmark.
Warning: fopen(/srv/www/vhosts/clausvb.de/subdomains/vlib/httpdocs/benchmarks/vlib//d8a76200856570140cac278474757126.vtc): failed to open stream: Permission denied in /srv/www/vhosts/clausvb.de/subdomains/vlib/httpdocs/benchmarks/vlib/vlibTemplate/cache.php on line 144
Warning: flock() expects parameter 1 to be resource, boolean given in /srv/www/vhosts/clausvb.de/subdomains/vlib/httpdocs/benchmarks/vlib/vlibTemplate/cache.php on line 145
vlibTemplate Error: unable to write to cache file (/srv/www/vhosts/clausvb.de/subdomains/vlib/httpdocs/benchmarks/vlib//d8a76200856570140cac278474757126.vtc).