
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
reddavis-benchmarker
Advanced tools
= Benchmarker
This is a very 0.0.1 attempt at building a benchmarking version of autotest.
While trying to make your code faster it can be a big pain and time waste having to keep switching to your benchmarks and then back again to your code.
It only works on OSX at the moment (because of fsevents).
== How To Use
Setup - your_file.rb require 'rubygems' require 'benchmarker' require 'benchmark' # rubys benchmark
Benchmarker.go('path to your code') do n = 2
Benchmark.bm do |x|
x.report { for i in 1..n; a = "1"; end }
x.report { n.times do ; a = "1"; end }
x.report { 1.upto(n) do ; a = "1"; end }
end
end
Start It ruby your_file.rb
Watch It Last Time: ["0.000015", "0.000010", "0.000010"] Now : ["0.000017", "0.000010", "0.000010"] Change : ["-13%", "0%", "0%"]
== Copyright
Copyright (c) 2009 reddavis. See LICENSE for details.
FAQs
Unknown package
We found that reddavis-benchmarker 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
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.