
Security News
Oxlint Introduces Type-Aware Linting Preview
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
capistrano-benchmark
Advanced tools
= capistrano-benchmark
Getting more timing data about your capistrano-tasks. Out of the box, capistrano does include some timing data, particularly for local and remote commands, but not for tasks as a whole.
capistrano-benchmark aims to provide a quick and dirty way to do this.
== Installation
You know the drill:
gem install capistrano-benchmark
== Setup
You can either set this up on a per project basis, or globally on a system.
require 'capistrano-benchmark'
require 'capistrano-benchmark'
Timing data isn't showed by default, and respects the ':benchmark' variable. There's a convience task for toggling this:
cap production benchmark deploy
If you want this to happen always, you can set this variable yourself:
set :benchmark, true
If you want to see a summarized benchmark report printed at the end:
after "deploy", "benchmark:report"
== Implementation notes
apistrano-benchmark works by alias chaining Capistrano::Configuration's execute_task to use ruby's built in
Benchmark` to time how long a real task works. Quick and dirty, but it gets the job done.
This is the same pattern as rails's alias_method_chain, so ideally this wouldn't really interfer with anything.
== Contributing to capistrano-benchmark
== Copyright
Copyright (c) 2011 Josh Nichols. See LICENSE.txt for further details.
FAQs
Unknown package
We found that capistrano-benchmark demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.