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 8997447
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:53:27+00:00 2026-06-15T23:53:27+00:00

When running with bundle exec $ time bundle exec rails generate model student name:string

  • 0

When running with bundle exec

$ time bundle exec rails generate model student name:string age:number
      invoke  active_record
      create    db/migrate/20121215170617_create_students.rb
      create    app/models/student.rb

real    0m13.397s
user    0m11.676s
sys     0m0.597s

Running directly

$ time rails generate model student name:string age:number
      invoke  active_record
      create    db/migrate/20121215171018_create_students.rb
      create    app/models/student.rb

real    0m6.408s
user    0m5.783s
sys     0m0.510s

$ ruby -v
ruby 1.9.3p286 (2012-10-12 revision 37165) [x86_64-linux]

so, normal the command takes 6seconds but with bundle exec, its slow & takes twice the the time.

so, is just me or bundle exec is just slow?

  • 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-06-15T23:53:27+00:00Added an answer on June 15, 2026 at 11:53 pm

    Using bundle exec with rails command is redundant.

    So don’t run bundle exec before rails command, this command is already
    aware of Bundler and sets up everything according to what you have on
    your Gemfile. If you prepend bundle exec before rails command all you
    will be adding is overhead of opening another process from Bundler and
    executing useless code since rails already does the right thing.

    Gotten from here.

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

Sidebar

Related Questions

I'm running ruby-debug with bundle exec rdebug script/server on Rails 2.3. When I press
this is weird, I'm running bundle exec guard on my rails application and I'm
I get this error while running bundle exec /usr/lib/ruby/gems/1.8/gems/bundler-1.0.20/lib/bundler/cli.rb:344:in `exec': wrong number of arguments
I get following error when running rspec: bundle exec rspec spec/models/user_spec.rb Failures: 1) User
I get the following error, when running bundle exec rake metrics:all . I dont
Running this (bundle exec rspec spec/requests/static_pages_spec.rb) worked fine yesterday, but today when I go
rbenv requires you to manually run bundle exec if you're running an executable from
I'm running bundle exec thin -p 4000 -e sandbox start 2>&1 and I get:
I am running the rspec command bundle exec rspec spec/requests resulting in the error:
When running bundle exec rake assets:precompile on my dev machine I get a rake

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.