Comments (2)
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.
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)
- Inconsistent results while measuring memory used at require time HOT 1
- I don't have the report but I get 'coplex_starter_backend_development' already exists HOT 1
- getting a 'Normal is not a module (TypeError)' HOT 2
- Can dead_end be removed? HOT 3
- DeadEnd raise an syntax error HOT 3
- Can't hit the endpoint HOT 8
- allocated memory issue HOT 3
- Ruby 3.0 support HOT 1
- DERAILED_SKIP_RAILS_REQUIRES var doesn't seem to work with minimal greenfield application HOT 2
- I don't get this result, seems out of whack HOT 2
- How does this work? HOT 3
- Authentication with sorcery HOT 4
- perf:objects won't boot HOT 2
- ActiveRecord::Migrator.migrate(ActiveRecord::Migrator.migrations_paths, nil) HOT 1
- Standardize formatting with a linter and add a lint check to CI HOT 1
- Fix CI and port to GitHub actions HOT 1
- Fix tests with Ruby 3.1.2 HOT 1
- Stack level too deep HOT 1
- Parsing issues when timing output to log is large HOT 1
- How to run derailed_benchmark's build locally (for contributing) ? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from derailed_benchmarks.