mirror of
https://github.com/inspec/inspec
synced 2024-11-26 22:50:36 +00:00
bc249a78cb
obj.method(name).call(*args) == obj.send(name, *args) ``` Calculating ------------------------------------- method+call 2.561M (± 2.2%) i/s - 12.816M in 5.006835s send 6.299M (± 2.4%) i/s - 31.501M in 5.004045s Comparison: send: 6299002.5 i/s method+call: 2560909.2 i/s - 2.46x slower ``` There aren't any direct tests for this? But I forcefully failed 2 functionals and then verified they passed after my change. Not sure how (or if) to write tests against rspec matchers in a meaningful way, even tho all I really want to test is a plain ole method in it. I'll poke to see if it is possible / practical. Signed-off-by: Ryan Davis <zenspider@chef.io> |
||
---|---|---|
.. | ||
bundles | ||
fetchers | ||
inspec | ||
matchers | ||
plugins | ||
resource_support | ||
resources | ||
source_readers | ||
utils | ||
inspec.rb |