lazebny/ramda-ruby

View on GitHub
bench/string/match.rb

Summary

Maintainability
A
55 mins
Test Coverage

Showing 1 of 1 total issue

Similar blocks of code found in 2 locations. Consider refactoring.
Open

Benchmark.ips do |x|
x.report('String#match') { str[xs.sample] }
x.report('Ramda.match') { Ramda.match(xs.sample, str) }
x.report('C Ramda.match') { Ramda.match(xs.sample).call(str) }
x.report('CA Ramda.match') { Ramda.match.call(xs.sample).call(str) }
Severity: Minor
Found in bench/string/match.rb and 1 other location - About 55 mins to fix
bench/type/is.rb on lines 7..12
Category
Status