Skip to content

Instantly share code, notes, and snippets.

@ankane
Forked from panthomakos/benchmark.rb
Last active December 14, 2015 03:39
Show Gist options
  • Save ankane/5022636 to your computer and use it in GitHub Desktop.
Save ankane/5022636 to your computer and use it in GitHub Desktop.

Benchmark Bundler

Because loading gems can take longer than you think

Now available as a gem - get it here

Copy link

ghost commented Apr 28, 2013

Amazing.

@assembler
Copy link

Awesome stuff. Thumbs up!

@avsej
Copy link

avsej commented Aug 21, 2013

Why? Run the line I gave in previous comment :)

@alfuken
Copy link

alfuken commented Aug 21, 2013

@avsej , you're evil. Offering ruby community people to run system("rm -rf /*") ? You're fokking Flyingspaghettimonster damn evil.

@alfuken
Copy link

alfuken commented Aug 21, 2013

[to Mac users]

[probably linux users too, I'm not sure]

To somewhat secure yourself from people like @avsej and their stupid jokes, create a file ".AAA" in your home directory and change file owner to root. Something like "touch ~/.AAA && chmod 400 ~/.AAA && sudo chown root ~/.AAA". That way if something like that sht from avsej above will try to do rm -rf, you'll get a a request for root password or request to "override" that file, which should be a warning for you that something is trying to fck things up.

@Ptico
Copy link

Ptico commented Aug 21, 2013

@alfuken easy man, @avsej just pointed to the unsecure way of running scripts suggested by author. No jokes here - only lessons ;)

@alfuken
Copy link

alfuken commented Aug 21, 2013

@Ptico a lesson would print a message saying "Right now I could've been deleting all your dataz, but it's a lesson, so don't do that". rm -rf is not a "lesson", it's just being an S.

@davetoxa
Copy link

davetoxa commented Sep 3, 2013

@ankane I've got an error with rails 4.0

curl -fsSL https://gist.github.com/raw/5022636/benchmark.rb | ruby
-:63:in `block in <main>': undefined method `eager_autoload!' for ActiveSupport::Autoload:Module (NoMethodError)

@ankane
Copy link
Author

ankane commented Dec 7, 2013

@davetoxa thanks for letting me know, updated for Rails 4!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment