Registry / testing / rspec-benchmark

rspec-benchmark

JSON →
library0.6.0rbrubygemsunverified

Performance testing matchers for RSpec to set expectations on speed, resources usage and scalability.

gem install rspec-benchmark
INSTALL
IMPORT
SIG · RSPEC-BENCHMARK
R
rspec-benchmark
testingrubyv0.6.0
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.

RSpec
✓ require 'rspec/benchmark'

Use RSpec matchers to benchmark performance.

require 'rspec/benchmark' RSpec.describe 'MyClass' do it 'performs under 0.1 seconds' do expect { MyClass.new.run }.to perform_under(0.1).sec end end
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.6.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
12
Amazon
3
Resources
rspec-benchmark — gem install rspec-benchmark · libregistry