Last active
August 29, 2015 14:03
-
-
Save luke-gru/c1c3b0f39608ed11735a to your computer and use it in GitHub Desktop.
ruby 1.9.3 ERB rendering benchmark with change + rubyprof top 10 highest self time methods
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(1.9.3)luke@luke-K52F:~/Desktop/code/rails/actionview$ ruby -Itest test/template/benchmark/render_erb_test.rb | |
Run options: --seed 33848 | |
# Running: | |
Calculating ------------------------------------- | |
small erb template 178 i/100ms | |
------------------------------------------------- | |
small erb template 1974.9 (±9.0%) i/s - 9790 in 5.009835s | |
.Calculating ------------------------------------- | |
small erb template with 1 partial | |
104 i/100ms | |
------------------------------------------------- | |
small erb template with 1 partial | |
1094.1 (±8.4%) i/s - 5512 in 5.083855s | |
.Calculating ------------------------------------- | |
small erb template with 2 partials | |
72 i/100ms | |
------------------------------------------------- | |
small erb template with 2 partials | |
767.2 (±8.1%) i/s - 3816 in 5.017473s | |
. | |
Finished in 21.381644s, 0.1403 runs/s, 0.1403 assertions/s. | |
3 runs, 3 assertions, 0 failures, 0 errors, 0 skips | |
Thread ID: 11229180 | |
Total: 21.365433 | |
Sort by: self_time | |
%self total self wait child calls name | |
4.67 3.01 1.00 0.00 2.01 426221 ThreadSafe::Cache#[] | |
3.75 2.01 0.80 0.00 1.21 426221 ThreadSafe::NonConcurrentCacheBackend#[] | |
2.27 0.49 0.49 0.00 0.00 578004 Symbol#== | |
1.97 1.23 0.42 0.00 0.81 44440 ActionView::LookupContext::ViewPaths#normalize_name | |
1.84 0.54 0.39 0.00 0.15 149448 Array#hash | |
1.60 0.34 0.34 0.00 0.00 26255 Array#| | |
1.53 1.06 0.33 0.00 0.73 177766 ActiveSupport::Notifications::Fanout#listeners_for | |
1.47 5.21 0.31 0.00 4.89 26249 ActionView::TemplateRenderer#determine_template | |
1.40 1.06 0.30 0.00 0.76 88880 ActionView::OutputBuffer#safe_concat | |
1.40 0.78 0.30 0.00 0.48 26249 Array#delete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment