var ejs = require('./lib/ejs'), str = '<% if (foo) { %>
<%= foo %>
<% } %>', times = 50000; console.log('rendering ' + times + ' times'); var start = new Date; while (times--) { ejs.render(str, { cache: true, filename: 'test', locals: { foo: 'bar' }}); } console.log('took ' + (new Date - start) + 'ms');