Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6042049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T06:44:49+00:00 2026-05-23T06:44:49+00:00

I am trying out ruby-prof and ran it against a somewhat self-contained module. The

  • 0

I am trying out ruby-prof and ran it against a somewhat self-contained module. The core of the module is 3 classes, with maybe 3 other helper classes being used. So there shouldn’t be a huge amount of overhead with tons of requires and incluces. Is this normal in a big(gish) app with a fair number of gems installed?

 18.06      7.67     1.99     0.00     7.66     1366  Kernel#require
  5.80      1.21     0.64     0.00     0.83    18704  Array#map
  5.73     10.21     0.63     0.00    10.09    38133  Array#each
  5.17      1.13     0.57     0.00     0.56    21796  Array#include?
  4.40      0.49     0.49     0.00     0.00   345434  Symbol#to_s
  3.78      0.42     0.42     0.00     0.00   446478  String#==
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T06:44:50+00:00Added an answer on May 23, 2026 at 6:44 am

    From ruby-prof‘s documentation:

    To profile a Rails application it is
    vital to run it using production like
    settings (cache classes, cache view
    lookups, etc.). Otherwise, Rail’s
    dependency loading code will overwhelm
    any time spent in the application
    itself (our tests show that Rails
    dependency loading causes a roughly 6x
    slowdown).

    Are you running this using production settings? If you aren’t using cached data and instead have to read the files/classes from disk every time, I can understand why you are seeing your system spend so much time in Kernel#require.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I ran ruby-profiler on one of my programs. I'm trying to figure out what
So I'm trying to rough out a design in Ruby, and so I ran
In Ruby, trying to print out the individual elements of a String is giving
I'm trying to create a ruby gem for rails out of a plugin I've
While trying out an experimental UINavigationController-based iPhone application, I ran into a problem when
Using Rails 3.2 and ruby 1.9.3p0 I am trying out the gem delayed_job. I
I'm learning metaprogramming in Ruby and am just trying out defining missing methods via
I have started learning Ruby recently and I was trying out the following piece
I am new to Ruby and I am trying out the merge sort algorithm
Am trying out Ruby on Rails in Windows XP using the Hello World example.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.