To measure a performance, one should first define the task. After that, the performance over that specific task can be measured. Clearly, any tool used for the task should produce the same end results, only with different performance. Regarding template engines, there's no general 'performance' to be measured. It's either client-side performance or server-side performance. At the server-side, the