🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

rake-benchmark

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rake-benchmark

1.0.0
Rubygems
Version published
Maintainers
1
Created
Source

Rake::Benchmark

Intercepts all calls to Rake::Task.execute and wraps them with Benchmark, outputting the timing informtion after the rake task completes.

Installation

Add it to your Gemfile:

gem 'rake-benchmark', require: false

And install it:

$ bundle

Then, require it in your Rakefile like this:

require 'rake/benchmark'

Example Rakefile

#!/usr/bin/env rake
require 'rake/benchmark'

desc "A sleepy rake task"
task :sleepy do
  puts "zzZZZzz"
  sleep(3)
end

Outputs:

$ rake sleepy
zzZZZzz
  sleepy -->   0.000000   0.000000   0.000000 (  3.001075)

Project Status

  • Build: Build Status
  • Code Quality: Code Climate
  • Dependencies: Dependency Status

Special Thanks

Inspired by a blog post by Gabe de Silveira.

Contributing

  • Fork it
  • Create your feature branch (git checkout -b my-new-feature)
  • Commit your changes (git commit -am 'Add some feature')
  • Push to the branch (git push origin my-new-feature)
  • Create new Pull Request

FAQs

Package last updated on 12 Apr 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts