by judofyr · 14y ago · 0 comments
Are you running the server in production mode?
Slim already has a set of benchmarks that compares it to Haml and ERB in various settings: https://github.com/stonean/slim#benchmarks
Do all three template engines use automatic HTML escaping?
Haml uses pretty-mode in development and ugly-mode in production.
But I just went with the out-of-the-box config, as do most Haml projects I've come across
ERB: 9.619 seconds
Haml: 10.893 seconds
Slim: 10.195 seconds
Full details at https://gist.github.com/3906297