Comments (9)
What does the contents of your perf.rake
file look like?
from derailed_benchmarks.
I using Devise and add a line to authenticate.
require 'bundler'
Bundler.setup
require 'derailed_benchmarks'
require 'derailed_benchmarks/tasks'
namespace :perf do
task :rack_load do
require ::File.expand_path('../config/environment', FILE)
DERAILED_APP = QprodeliveryWeb::Application
DerailedBenchmarks.auth.user = -> { User.find_or_create!(email: "[email protected]) }
end
end
from derailed_benchmarks.
What do you get when you run
$ rack -f perf.rake -T
from derailed_benchmarks.
Well this command don't work for me, but the command below works:
rake -f perf.rake -T
And get this:
rake perf:allocated_objects # outputs allocated object diff after app is called TEST_COUNT times
rake perf:gc # outputs GC::Profiler.report data while app is called TEST_COUNT times
rake perf:ips # iterations per second
rake perf:mem # show memory usage caused by invoking require per gem
rake perf:objects # profiles ruby allocation
rake perf:ram_over_time # outputs ram usage over time
rake perf:stackprof # stackprof
rake perf:test # hits the url TEST_COUNT times
from derailed_benchmarks.
I using Ruby 2.2.4 and Rails 4.2.5!
from derailed_benchmarks.
That was a typo, i meant rake
It doesn't look like you have perf:require_bench
.
Also we don't list that as a command you can run https://github.com/schneems/derailed_benchmarks#running-derailed-exec
I think you want perf:mem
or bundle:mem
from derailed_benchmarks.
If i use perf:men
works, but this command of Memory used at Require time how a know the total memory my application?
from derailed_benchmarks.
Schneems works now, i remove the redirect if my application had to another page with Devise.
Please can you explain me, how difference when return:
TOP: 155.8789 MiB
application: 73.2578 MiB
activeadmin: 22.6484 MiB
active_admin: 22.6406 MiB
ransack: 15.7891 MiB
.....
The TOP is all memory that my application usage? Or the real value is application?
Thank you!
from derailed_benchmarks.
Top is everything.
from derailed_benchmarks.
Related Issues (20)
- 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
- bundle:mem doesn't seem to be deterministic - is this expected? HOT 1
- N+1 Query on UsersController#projects
- Update derailed to depend on syntax_search
- How do I make a request to a endpoint that requires POST?
- SSL connection error: HOT 1
- Compatibility in ruby >=3.2 ? HOT 2
- Blocked host on development environment HOT 1
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.