Some quick benchmarks on extracting ActionView
from ActionPack
. There are performance gains in both development and production envs, but not that significant.
Requests per second [#/sec] (mean) | |
---|---|
Development (with AV) | 330.23 |
Development (without AV) | 331.61 |
Development Edge Master (b77f25cb8479a8ff6c93b1d6bbf0771e5368434f) | 276.66 |
Production (with AV) | 423.98 |
Production (without AV) | 444.19 |
Production Edge Master (b77f25cb8479a8ff6c93b1d6bbf0771e5368434f) | 340.43 |
Workstation: MacBook Air, 4gb ram, 1.8ghz i5 cpu
https://github.com/wycats/rails-simple-benches
~/projects/rails/actionpack/rails-simple-benches-master extract_renderers⚡› ruby minimal.rb
.........
overhead index template_1 partial partial_10 coll_10 partial_100 coll_100 uniq_100 diff_100
145 219 282 301 1111 594 8735 3223 3451 6149
~/projects/rails/actionpack/rails-simple-benches-master extract_renderers⚡› git co master
Switched to branch 'master'
~/projects/rails/actionpack/rails-simple-benches-master master⚡› ruby minimal.rb
.........
overhead index template_1 partial partial_10 coll_10 partial_100 coll_100 uniq_100 diff_100
141 243 315 328 1127 589 8785 3215 3476 6593