[Rubygems-developers] RubyGems performance

Eric Hodel drbrain at segment7.net
Sat Dec 11 01:34:18 EST 2004


On 10 Dec 2004, at 20:50, Gavin Sinclair wrote:

> I'll summarise the results in a table.
>
>   * "DIRECT" means calling require 'X' where 'X' is installed
>     directly (via RPA, as it happens).
>   * "GEM" means calling require 'X' where X is installed as a gem.
>   * "COMBO" means calling require 'X' _after_ having loaded 'rubygems'
>     but where the library is also installed directly.
>
>   LIBRARY                 |  DIRECT  |   GEM    |  COMBO  | GEMSPEC  
> SIZE
>    
> ------------------------+----------+----------+--------- 
> +--------------
>   'rake'                  |  0.203s  |  3.772s  |  0.481s |  1763 bytes
>   'redcloth'              |  0.477s  |  0.577s  |  1.355s |  1762 bytes
>   'log4r'                 |  0.430s  |  0.908s  |  2.545s | 10117 bytes
>   'extensions/all'        |  0.536s  |  5.594s  |  2.741s |
>   'dev-utils/debug'       |  0.640s  |  5.697s  |  2.056s |
>   'celsoft.com/template'  |  0.075s  |  0.362s  |  0.096s |

For the record, rails is:

  2018 bytes | actionmailer
  5406 bytes |   actionpack
  5501 bytes | activerecord
  2109 bytes |        rails
------------+--------------
15034 bytes | total

Also, log4r includes all of its rdoc in the gem, it doesn't get  
auto-generated.



More information about the Rubygems-developers mailing list