UNPKG

compound-ex4

Version:

Compound-ex4 - MVC framework for NodeJS (ExpressJs 4 version), fork compoundjs(https://github.com/1602/compound)

14 lines (9 loc) 326 B
var ejs = require('./lib/ejs'), str = '<% if (foo) { %><p><%= foo %></p><% } %>', 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');