Giter Site home page Giter Site logo

Comments (9)

schneems avatar schneems commented on August 18, 2024

What does the contents of your perf.rake file look like?

from derailed_benchmarks.

luiszacheu avatar luiszacheu commented on August 18, 2024

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.

schneems avatar schneems commented on August 18, 2024

What do you get when you run

$ rack -f perf.rake -T

from derailed_benchmarks.

luiszacheu avatar luiszacheu commented on August 18, 2024

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.

luiszacheu avatar luiszacheu commented on August 18, 2024

I using Ruby 2.2.4 and Rails 4.2.5!

from derailed_benchmarks.

schneems avatar schneems commented on August 18, 2024

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.

luiszacheu avatar luiszacheu commented on August 18, 2024

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.

luiszacheu avatar luiszacheu commented on August 18, 2024

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.

schneems avatar schneems commented on August 18, 2024

Top is everything.

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.