1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

Make the standard benchmark file tougher on Haml.

This is done by highlighting the current worst performance area:
dynamic attributes.
This commit is contained in:
Nathan Weizenbaum 2010-10-27 01:23:27 -07:00
parent ca818e1314
commit da3cbf1d4d
3 changed files with 8 additions and 6 deletions

View file

@ -18,7 +18,7 @@
<% end -%>
<div id='body'><%= " Quotes should be loved! Just like people!" %></div>
Wow.
<p>
<p code="<%= 1 + 2 %>">
<%= "Holy cow " +
"multiline " +
"tags! " +
@ -28,7 +28,8 @@
n.to_s
}.join("|") %>
</p>
<div class='silent'>
<% bar = 17 %>
<div class='silent' foo="<%= bar %>">
<% foo = String.new
foo << "this"
foo << " shouldn't"

View file

@ -134,12 +134,12 @@
118
119
Wow.|
<p>
<p code='3'>
Holy cow multiline tags! A pipe (|) even!
PipesIgnored|PipesIgnored|PipesIgnored|
1|2|3
</p>
<div class='silent'>
<div class='silent' foo='17'>
this shouldn't evaluate but now it should!
</div>
<ul class='really cool'>

View file

@ -14,7 +14,7 @@
- 120.times do |number|
= number
Wow.|
%p
%p{:code => 1 + 2}
= "Holy cow " + |
"multiline " + |
"tags! " + |
@ -23,7 +23,8 @@
= [1, 2, 3].collect { |n| |
n.to_s |
}.join("|") |
%div.silent
- bar = 17
%div.silent{:foo => bar}
- foo = String.new
- foo << "this"
- foo << " shouldn't"