Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
A iterations per second enhancement to Benchmark that includes memory allocations, based on benchmark-ips.
Add this line to your application's Gemfile:
gem 'benchmark-ipsa'
And then execute:
$ bundle
Or install it yourself as:
$ gem install benchmark-ipsa
require 'benchmark/ipsa'
Benchmark.ipsa do |x|
x.report('foo 1'){
arr = ['1', 2]
sleep 0.1
}
x.report('foo 2'){
sleep 0.1
}
end
Results:
Allocations -------------------------------------
foo 1 2/0 alloc/ret 1/0 strings/ret
foo 2 0/0 alloc/ret 0/0 strings/ret
Warming up --------------------------------------
foo 1 1.000 i/100ms
foo 2 1.000 i/100ms
Calculating -------------------------------------
foo 1 9.675 (± 0.0%) i/s - 49.000
foo 2 9.585 (± 0.0%) i/s - 48.000
You can run the specs in this repo to see it live.
For more, see benchmark-ips
Running the specs:
git clone
bundle install
bundle exec rake spec
Fork, implement, add tests, pull request, get my everlasting thanks and a respectable place here :).
Copyright (c) 2016 Dotan Nahum @jondot. See LICENSE for further details.
FAQs
Unknown package
We found that benchmark-ipsa 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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.