Rails 3.2 - haml vs. erb. Is haml faster? (february 2012)
I am working on a project and I am still thinking about using HAML (beautiful code, less size of view files) instead of classic ERB template. My worries why I didn't do it yet are the speed of generating views - I read an articles/benchmarks and there was almost always HAML slower than ERB - but the truth is, that the articles are 2-3 years old. So my question is, how looks the comparison these two template systems now, in the start of 2012? Here are some benchmarks from someone in Nov 2011 . You should be able to cd to your haml directory and run rake benchmark . I say "should" because you'll