Skip to content

@nahi /gist:1041791
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
CRuby 1.9.3 loading time
= Summary
Measured loading time of 2 Rails 3.0.7 apps
* emptyApp: script/rails generate emptyApp
* slow-rails: by Joe Van Dyk (https://github.com/joevandyk/slow-rails)
Interpreters
* ruby 1.9.2p274 (2011-06-06 revision 31932) [x86_64-linux]
* ruby 1.9.3dev (2011-06-22 trunk 32204) [x86_64-linux]
* ruby 1.9.3dev (2011-06-22 trunk 32204) [x86_64-linux] + Shyouhei's expand_path cache patch (https://github.com/shyouhei/ruby/commit/c229cb4)
Results (average wall clock time of 'time ruby script/rails runner 0' 10 times)
* 1.9.2p274
* emptyApp: 1.87 [sec]
* slow-rails: 8.69 [sec]
* 1.9.3dev of today
* emptyApp: 1.35 [sec] (39% faster than 1.9.2)
* slow-rails: 6.37 [sec] (36% faster than 1.9.2)
* 1.9.3dev + Shyouhei's expand_path cache patch
* emptyApp: 1.07 [sec] (26% faster than 1.9.3dev)
* slow-rails: 3.81 [sec] (67% faster than 1.9.3dev)
Raw data:
= ruby 1.9.2p274 (2011-06-06 revision 31932) [x86_64-linux]
== emptyApp
% for i in 1 2 3 4 5 6 7 8 9 10; do time ruby script/rails runner 0; done
ruby script/rails runner 0 1.59s user 0.21s system 99% cpu 1.803 total
ruby script/rails runner 0 1.51s user 0.24s system 99% cpu 1.758 total
ruby script/rails runner 0 1.57s user 0.22s system 99% cpu 1.793 total
ruby script/rails runner 0 1.55s user 0.23s system 99% cpu 1.788 total
ruby script/rails runner 0 1.60s user 0.20s system 99% cpu 1.805 total
ruby script/rails runner 0 2.12s user 0.30s system 91% cpu 2.657 total
ruby script/rails runner 0 1.58s user 0.19s system 99% cpu 1.770 total
ruby script/rails runner 0 1.65s user 0.16s system 99% cpu 1.824 total
ruby script/rails runner 0 1.54s user 0.21s system 99% cpu 1.760 total
ruby script/rails runner 0 1.55s user 0.21s system 99% cpu 1.762 total
== slow-rails
% for i in 1 2 3 4 5 6 7 8 9 10; do time ruby script/rails runner 0; done
ruby script/rails runner 0 8.24s user 0.59s system 99% cpu 8.847 total
ruby script/rails runner 0 8.21s user 0.61s system 100% cpu 8.817 total
ruby script/rails runner 0 8.13s user 0.55s system 99% cpu 8.693 total
ruby script/rails runner 0 8.06s user 0.62s system 99% cpu 8.682 total
ruby script/rails runner 0 7.98s user 0.51s system 99% cpu 8.496 total
ruby script/rails runner 0 8.03s user 0.65s system 99% cpu 8.685 total
ruby script/rails runner 0 8.09s user 0.62s system 99% cpu 8.722 total
ruby script/rails runner 0 8.05s user 0.50s system 99% cpu 8.556 total
ruby script/rails runner 0 8.00s user 0.60s system 99% cpu 8.607 total
ruby script/rails runner 0 8.30s user 0.53s system 100% cpu 8.830 total
= ruby 1.9.3dev (2011-06-22 trunk 32204) [x86_64-linux]
== emptyApp
% for i in 1 2 3 4 5 6 7 8 9 10; do time ruby script/rails runner 0; done
ruby script/rails runner 0 1.27s user 0.08s system 99% cpu 1.362 total
ruby script/rails runner 0 1.25s user 0.09s system 99% cpu 1.344 total
ruby script/rails runner 0 1.25s user 0.08s system 98% cpu 1.344 total
ruby script/rails runner 0 1.28s user 0.05s system 99% cpu 1.343 total
ruby script/rails runner 0 1.27s user 0.08s system 99% cpu 1.361 total
ruby script/rails runner 0 1.26s user 0.07s system 99% cpu 1.341 total
ruby script/rails runner 0 1.29s user 0.06s system 99% cpu 1.357 total
ruby script/rails runner 0 1.32s user 0.04s system 99% cpu 1.371 total
ruby script/rails runner 0 1.24s user 0.10s system 99% cpu 1.351 total
ruby script/rails runner 0 1.25s user 0.08s system 99% cpu 1.335 total
== slow-rails
% for i in 1 2 3 4 5 6 7 8 9 10; do time ruby script/rails runner 0; done
ruby script/rails runner 0 6.22s user 0.27s system 99% cpu 6.508 total
ruby script/rails runner 0 6.13s user 0.27s system 99% cpu 6.420 total
ruby script/rails runner 0 5.98s user 0.32s system 99% cpu 6.355 total
ruby script/rails runner 0 5.99s user 0.30s system 99% cpu 6.306 total
ruby script/rails runner 0 6.08s user 0.21s system 99% cpu 6.313 total
ruby script/rails runner 0 6.08s user 0.24s system 99% cpu 6.351 total
ruby script/rails runner 0 5.95s user 0.34s system 99% cpu 6.322 total
ruby script/rails runner 0 6.02s user 0.34s system 99% cpu 6.375 total
ruby script/rails runner 0 5.99s user 0.35s system 99% cpu 6.365 total
ruby script/rails runner 0 6.17s user 0.21s system 99% cpu 6.400 total
= ruby 1.9.3dev (2011-06-22 trunk 32204) [x86_64-linux] + Shyouhei's expand_path cache patch (https://github.com/shyouhei/ruby/commit/c229cb4)
== emptyApp
% for i in 1 2 3 4 5 6 7 8 9 10; do time ruby script/rails runner 0; done
ruby script/rails runner 0 0.97s user 0.13s system 99% cpu 1.110 total
ruby script/rails runner 0 1.02s user 0.04s system 99% cpu 1.064 total
ruby script/rails runner 0 1.00s user 0.07s system 99% cpu 1.077 total
ruby script/rails runner 0 0.98s user 0.06s system 98% cpu 1.052 total
ruby script/rails runner 0 0.96s user 0.09s system 98% cpu 1.061 total
ruby script/rails runner 0 0.97s user 0.09s system 99% cpu 1.069 total
ruby script/rails runner 0 0.99s user 0.08s system 99% cpu 1.078 total
ruby script/rails runner 0 0.97s user 0.10s system 99% cpu 1.077 total
ruby script/rails runner 0 1.00s user 0.07s system 99% cpu 1.078 total
ruby script/rails runner 0 0.96s user 0.07s system 99% cpu 1.040 total
== slow-rails
% for i in 1 2 3 4 5 6 7 8 9 10; do time ruby script/rails runner 0; done
ruby script/rails runner 0 3.86s user 0.33s system 98% cpu 4.234 total
ruby script/rails runner 0 3.49s user 0.35s system 99% cpu 3.858 total
ruby script/rails runner 0 3.45s user 0.31s system 99% cpu 3.787 total
ruby script/rails runner 0 3.41s user 0.29s system 99% cpu 3.729 total
ruby script/rails runner 0 3.44s user 0.27s system 99% cpu 3.731 total
ruby script/rails runner 0 3.44s user 0.30s system 99% cpu 3.762 total
ruby script/rails runner 0 3.42s user 0.26s system 99% cpu 3.705 total
ruby script/rails runner 0 3.46s user 0.27s system 99% cpu 3.749 total
ruby script/rails runner 0 3.43s user 0.31s system 99% cpu 3.757 total
ruby script/rails runner 0 3.43s user 0.30s system 99% cpu 3.759 total
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.