baryshev / ect

Fastest JavaScript template engine with embedded CoffeeScript syntax

Home Page:http://ectjs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NodeJS ECT Slow rendering

opened this issue · comments

Hi i have simple code that i will render:
150 x FOO.

When i render it with Node.js template (ECT) the response time is: 1855ms
With PHP response time is: 24ms

ECT code:

<?- "FOO"; ?>
<?- "FOO"; ?>
<?- "FOO"; ?>
<?- "FOO"; ?>
<?- "FOO"; ?>
...

PHP code:

<?php echo 'FOO'; ?>
<?php echo 'FOO'; ?>
<?php echo 'FOO'; ?>
<?php echo 'FOO'; ?>
<?php echo 'FOO'; ?>
...

All are no cached.
And how bigger the count the slower becomes NodeJS (ECT)

Is there something that i miss?