++ed by:
AKIYM MUTO MHOWARD

3 PAUSE users
1 non-PAUSE user.

sysread

BENCHMARKS

Various operations comparing URI::Fast against URI's performance. The script to recreate is included in the bench folder of the distribution.

Tests were performed on a Pixelbook (i5) using Termux and Perl 5.26 installed with perlbrew. Earlier testing was done with a similarly equipped MacBook Pro. It is interesting to note that URI::Fast's rate is roughly the same, but URI's rate increased significantly over Perl compiled for MacOS.

Constructor

                            Rate            URI      URI::Fast
              URI        52576/s             --           -87%
        URI::Fast       400000/s           661%             --

Parse scheme

                            Rate            URI      URI::Fast
              URI        40750/s             --           -86%
        URI::Fast       290698/s           613%             --

Update scheme

                            Rate            URI      URI::Fast
              URI        22738/s             --           -89%
        URI::Fast       214592/s           844%             --

Parse authorization

                            Rate            URI      URI::Fast
              URI        27793/s             --           -88%
        URI::Fast       228311/s           721%             --

Update authorization

                            Rate            URI      URI::Fast
              URI        20056/s             --           -91%
        URI::Fast       234742/s          1070%             --

Parse path (scalar)

                            Rate            URI      URI::Fast
              URI        37850/s             --           -81%
        URI::Fast       201613/s           433%             --

Parse path (list)

                            Rate            URI      URI::Fast
              URI        28090/s             --           -79%
        URI::Fast       132626/s           372%             --

Update path (scalar)

                            Rate            URI      URI::Fast
              URI        30769/s             --           -87%
        URI::Fast       242718/s           689%             --

Update path (array)

                            Rate            URI      URI::Fast
              URI        30175/s             --           -83%
        URI::Fast       181818/s           503%             --

Parse query

                            Rate            URI      URI::Fast
              URI        17999/s             --           -88%
        URI::Fast       147929/s           722%             --

Set query parameter

                            Rate            URI      URI::Fast
              URI        24108/s             --           -85%
        URI::Fast       163934/s           580%             --

Query form

                            Rate            URI      URI::Fast
              URI        18671/s             --           -87%
        URI::Fast       139665/s           648%             --

Query keys

                            Rate            URI      URI::Fast
              URI        19246/s             --           -87%
        URI::Fast       153846/s           699%             --

Stringification

                            Rate            URI      URI::Fast
              URI        44053/s             --           -74%
        URI::Fast       167785/s           281%             --

uri_split

                            Rate     URI::Split      URI::Fast
       URI::Split       214592/s             --           -61%
        URI::Fast       549451/s           156%             --

Encode

                            Rate    URI::Escape    URL::Encode
      URI::Escape         2089/s             --           -31%
      URL::Encode         3012/s            44%             --
  URI::Encode::XS      1010101/s         48243%         33440%
        URI::Fast      1250000/s         59725%         41406%

Decode

                            Rate    URL::Encode    URI::Escape
      URL::Encode         2261/s             --            -8%
      URI::Escape         2449/s             8%             --
        URI::Fast       325733/s         14305%         13198%
  URI::Encode::XS       609756/s         26866%         24793%

IRI - ctor

                            Rate            IRI      URI::Fast
              IRI         7645/s             --           -98%
        URI::Fast       454545/s          5845%             --

IRI - query_hash

                            Rate            IRI      URI::Fast
              IRI         6238/s             --           -98%
        URI::Fast       256410/s          4010%             --

IRI - set param

                            Rate            IRI      URI::Fast
              IRI         6339/s             --           -97%
        URI::Fast       185874/s          2832%             --

IRI - update path

                            Rate            IRI      URI::Fast
              IRI         5817/s             --           -98%
        URI::Fast       243902/s          4093%             --