
Research
/Security News
npm Author Qix Compromised via Phishing Email in Major Supply Chain Attack
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Whysoslow is a little runner/printer we wrote to benchmark our Ruby code. It runs a block of code, collects run time measurements, and can snapshot memory usage information at various points during execution.
It has no tests, shockingly sparse docs, and is more of an experiment at this point. It comes as is for now so use if you see fit. I will happily accept any pull requests for documentation, tests, extensions, and improvements.
require 'whysoslow'
printer = Whysoslow::DefaultPrinter.new({
:title => "Bench Report Title",
:verbose => true
})
runner = Whysoslow::Runner.new(@printer)
runner.run do
# ... some long running script or loop
runner.snapshot("mem usage during run")
# ... some more long running script or loop
end
The DefaultPrinter outputs to an io stream ($stdout by default). It uses Ansi to output columned memory usage snapshot data and measurement data.
Add this line to your application's Gemfile:
gem 'whysoslow'
And then execute:
$ bundle
Or install it yourself as:
$ gem install whysoslow
git checkout -b my-new-feature
)git commit -am 'Added some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that whysoslow demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.