Giter Site home page Giter Site logo

Comments (2)

bebeun avatar bebeun commented on July 18, 2024

ok,
RAILS_ENV=production bundle exec derailed exec perf:mem
gives
TOP: 179.6563 MiB
application: 35.5156 MiB
while
bundle exec derailed bundle:mem production
gives
TOP: 51.0273 MiB
rails/all: 18.7852 MiB

I really don't understand the difference.

Any help ?

from derailed_benchmarks.

schneems avatar schneems commented on July 18, 2024

TOP is the amount of memory that is consumed by the whole process.

bundle:mem does not actually boot your app, it only loads your dependencies into memory, so basically we're saying that 51mb of memory come from just loading your dependencies. perf:mem also boots your application. This is important because sometimes gems or code are lazy loaded i.e. if you have require 'foo' somewhere in the boot process itself. Rails will do this, it only loads the things it needs as it needs them. So 179mb is the likely actual RAM use of your app when it first boots but has not yet done taken any requests.

I think application refers to the code in your app, as opposed to dependencies, but I kinda forget. If you have a full output and can post to a gist, I can maybe be of more help.

from derailed_benchmarks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.