diff options
author | José Valim <jose.valim@gmail.com> | 2011-12-08 14:05:18 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-12-08 16:39:06 +0100 |
commit | 06ac7d3ee0371c3ba20174a5f9fe3830a9d3f6a2 (patch) | |
tree | d4f3326b6ea541d697993f00d1feb6f5ad23c67e /actionpack/examples/views | |
parent | 000891805923dc36eaaff891b49363bea6e2af6f (diff) | |
download | rails-06ac7d3ee0371c3ba20174a5f9fe3830a9d3f6a2.tar.gz rails-06ac7d3ee0371c3ba20174a5f9fe3830a9d3f6a2.tar.bz2 rails-06ac7d3ee0371c3ba20174a5f9fe3830a9d3f6a2.zip |
Add performance scripts from wycats/rails-simple-benches to actionpack.
Diffstat (limited to 'actionpack/examples/views')
-rw-r--r-- | actionpack/examples/views/_collection.erb | 3 | ||||
-rw-r--r-- | actionpack/examples/views/_hello.erb | 1 | ||||
-rw-r--r-- | actionpack/examples/views/_hundred_partials.erb | 3 | ||||
-rw-r--r-- | actionpack/examples/views/_partial.erb | 10 | ||||
-rw-r--r-- | actionpack/examples/views/_ten_partials.erb | 10 | ||||
-rw-r--r-- | actionpack/examples/views/hashes/_hash.erb | 3 | ||||
-rw-r--r-- | actionpack/examples/views/my_hashes/_my_hash.erb | 3 | ||||
-rw-r--r-- | actionpack/examples/views/template.html.erb | 1 |
8 files changed, 34 insertions, 0 deletions
diff --git a/actionpack/examples/views/_collection.erb b/actionpack/examples/views/_collection.erb new file mode 100644 index 0000000000..cee3fe64c0 --- /dev/null +++ b/actionpack/examples/views/_collection.erb @@ -0,0 +1,3 @@ +<%= collection[:name] %> +<%= collection[:address] %> +<%= omg %>
\ No newline at end of file diff --git a/actionpack/examples/views/_hello.erb b/actionpack/examples/views/_hello.erb new file mode 100644 index 0000000000..5ab2f8a432 --- /dev/null +++ b/actionpack/examples/views/_hello.erb @@ -0,0 +1 @@ +Hello
\ No newline at end of file diff --git a/actionpack/examples/views/_hundred_partials.erb b/actionpack/examples/views/_hundred_partials.erb new file mode 100644 index 0000000000..35c2a6c9d3 --- /dev/null +++ b/actionpack/examples/views/_hundred_partials.erb @@ -0,0 +1,3 @@ +<% 100.times do %> + <%= render :partial => "/collection", :object => $OBJECT %> +<% end %>
\ No newline at end of file diff --git a/actionpack/examples/views/_partial.erb b/actionpack/examples/views/_partial.erb new file mode 100644 index 0000000000..3ca8e80b52 --- /dev/null +++ b/actionpack/examples/views/_partial.erb @@ -0,0 +1,10 @@ +<%= "Hello" %> +<%= "Hello" %> +<%= "Hello" %> +<%= "Hello" %> +<%= "Hello" %> +<%= "Hello" %> +<%= "Hello" %> +<%= "Hello" %> +<%= "Hello" %> +<%= "Hello" %> diff --git a/actionpack/examples/views/_ten_partials.erb b/actionpack/examples/views/_ten_partials.erb new file mode 100644 index 0000000000..fd02991e22 --- /dev/null +++ b/actionpack/examples/views/_ten_partials.erb @@ -0,0 +1,10 @@ +<%= render :partial => '/collection', :object => $OBJECT %> +<%= render :partial => '/collection', :object => $OBJECT %> +<%= render :partial => '/collection', :object => $OBJECT %> +<%= render :partial => '/collection', :object => $OBJECT %> +<%= render :partial => '/collection', :object => $OBJECT %> +<%= render :partial => '/collection', :object => $OBJECT %> +<%= render :partial => '/collection', :object => $OBJECT %> +<%= render :partial => '/collection', :object => $OBJECT %> +<%= render :partial => '/collection', :object => $OBJECT %> +<%= render :partial => '/collection', :object => $OBJECT %>
\ No newline at end of file diff --git a/actionpack/examples/views/hashes/_hash.erb b/actionpack/examples/views/hashes/_hash.erb new file mode 100644 index 0000000000..c100a290bd --- /dev/null +++ b/actionpack/examples/views/hashes/_hash.erb @@ -0,0 +1,3 @@ +<%= hash[:name] %> +<%= hash[:address] %> +<%= omg %>
\ No newline at end of file diff --git a/actionpack/examples/views/my_hashes/_my_hash.erb b/actionpack/examples/views/my_hashes/_my_hash.erb new file mode 100644 index 0000000000..e25d84101a --- /dev/null +++ b/actionpack/examples/views/my_hashes/_my_hash.erb @@ -0,0 +1,3 @@ +<%= my_hash[:name] %> +<%= my_hash[:address] %> +<%= omg %>
\ No newline at end of file diff --git a/actionpack/examples/views/template.html.erb b/actionpack/examples/views/template.html.erb new file mode 100644 index 0000000000..5ab2f8a432 --- /dev/null +++ b/actionpack/examples/views/template.html.erb @@ -0,0 +1 @@ +Hello
\ No newline at end of file |