4 ms·
IS IT FASTER? I assume Node/JavaScript will render HTML faster than ruby/rails. Do you have benchmarks?
by msoad 14y ago
IS IT FASTER?
I assume Node/JavaScript will render HTML faster than ruby/rails. Do you have benchmarks?
- ricardobeat 14y agoFaster than what? V8 can be an order of magnitude faster than Ruby: http://benchmarksgame.alioth.debian.org/u32/benchmark.php?test=all&lang=v8&lang2=yarv&data=u32 http://benchmarksgame.alioth.debian.org/u32/benchmark.php?te...
- tracker1 14y agoNode/JS won't necessarily render HTML faster. There are libraries to bring DOM interaction into NodeJS, there's also PhantomJS, and previous attempts like Aptana's server. All of these have been very heavy, and didn't scale well. PhantomJS is probably the best current option, but doesn't tie directly to Node, and still not as fast as string based templating. Regarding string based templates, they are really implementation dependant, and there are tons of options available. Right now some common ones for NodeJS are probably Bliss (Razor inspired), Nunjucks (jinja2 inspired), Mustache/Handlebars and Jade (Haml inspired), and EJS (similar to PHP, or classic ASP). Probably the most broadly available is Mustache, which has implementations in about every language under the sun, and probably could make a decent benchmark to compare string processing in different languages. All of the above simply bring me, to use what you feel comfortable with and what feels right.