ruby/benchmark/app_uri.rb

9 строки
113 B
Ruby

require 'uri'
100_000.times{
uri = URI.parse('http://www.ruby-lang.org')
uri.scheme
uri.host
uri.port
}