[MTOS-dev] Stats from CMS modularization
Byrne Reese
byrne at sixapart.com
Thu Feb 14 16:51:25 PST 2008
Just a quick note to show some real benefits of the modularization
work. Here is a simple command that is simply loading MT::App::CMS and
displaying the process memory usage afterward:
$ perl -Ilib -Iextlib -MMT::App::CMS -e 'print `ps $$ -o rss=`;'
10744
And here we have an instance of the CMS object being created. The
additional memory usage here is due to Perl starting up the DBI,
loading MT configuration settings and plugins, etc.
$ perl -Ilib -Iextlib -MMT::App::CMS -e 'my $mt = new MT::App::CMS;
print `ps $$ -o rss=`;'
19400
After modularization, these figures dropped to 5676 and 14504
respectively. These tests aren't actually doing any work, like
displaying the dashboard, but I think the result is still significant.
More information about the MTOS-dev
mailing list