$ bundle exec ruby bench.rb Warming up -------------------------------------- URI 18.622k i/100ms Addressable 6.465k i/100ms uri_parser 22.454k i/100ms Addressable Intl 5.385k i/100ms uri_parser Intl 12.766k i/100ms Calculating ------------------------------------- URI 193.270k (± 8.1%) i/s - 968.344k in 5.054300s Addressable 62.432k (± 3.8%) i/s - 316.785k in 5.082109s uri_parser 238.980k (± 2.8%) i/s - 1.213M in 5.077765s Addressable Intl 55.547k (± 3.7%) i/s - 280.020k in 5.048548s uri_parser Intl 135.370k (± 2.9%) i/s - 676.598k in 5.002692s Comparison: uri_parser: 238980.3 i/s URI: 193269.9 i/s - 1.24x slower uri_parser Intl: 135370.3 i/s - 1.77x slower Addressable: 62432.2 i/s - 3.83x slower Addressable Intl: 55546.6 i/s - 4.30x slower