Registry / testing / benchmark-ips

benchmark-ips

JSON →
library2.15.1rbrubygemsunverified

A iterations per second enhancement to Benchmark.

gem install benchmark-ips
INSTALL
IMPORT
SIG · BENCHMARK-IPS
B
benchmark-ips
testingrubyv2.15.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Benchmark::IPS
require 'benchmark/ips'

Compare iterations per second of two code blocks.

require 'benchmark/ips' Benchmark.ips do |x| x.report('fast') { 1 + 1 } x.report('slow') { sleep(0.01) } x.compare! end
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.15.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
16
Meta
1
Amazon
1
OpenAI (training)
1
Resources
benchmark-ips — gem install benchmark-ips · libregistry