[ruby/uri] Increase repeat orders of magnitude

https://github.com/ruby/uri/commit/cfbeade935
This commit is contained in:
Nobuyoshi Nakada 2023-05-04 22:46:20 +09:00 committed by git
parent b4e4ad9545
commit c598bc4603

View File

@ -116,7 +116,7 @@ class TestCommon < Test::Unit::TestCase
pre = ->(n) {
'https://example.com/dir/' + 'a' * (n * 100) + '/##.jpg'
}
assert_linear_performance((1..10).map {|i| i * 100}, rehearsal: 1000, pre: pre) do |uri|
assert_linear_performance((1..3).map {|i| 10**i}, rehearsal: 1000, pre: pre) do |uri|
assert_raise(URI::InvalidURIError) do
URI.parse(uri)
end