The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

URI::Fast::Benchmarks - Benchmarks comparing URI::Fast and URI

VERSION

version 0.14

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 my development machine, a 2015 MacBook Pro (2.7 GHz Intel Core i5, 8GB 1867 MHz DDR3 RAM) using Perl 5.24 installed using perlbrew.

Constructor

                            Rate            URI      URI::Fast
              URI        96246/s             --           -88%
        URI::Fast       819672/s           752%             --

Parse scheme

                            Rate            URI      URI::Fast
              URI        83612/s             --           -88%
        URI::Fast       724638/s           767%             --

Update scheme

                            Rate            URI      URI::Fast
              URI        52301/s             --           -92%
        URI::Fast       684932/s          1210%             --

Parse authorization

                            Rate            URI      URI::Fast
              URI        65062/s             --           -91%
        URI::Fast       719424/s          1006%             --

Update authorization

                            Rate            URI      URI::Fast
              URI        40552/s             --           -93%
        URI::Fast       606061/s          1395%             --

Parse path (scalar)

                            Rate            URI      URI::Fast
              URI        80257/s             --           -82%
        URI::Fast       456621/s           469%             --

Parse path (list)

                            Rate            URI      URI::Fast
              URI        54975/s             --           -82%
        URI::Fast       305810/s           456%             --

Update path (scalar)

                            Rate            URI      URI::Fast
              URI        67431/s             --           -88%
        URI::Fast       571429/s           747%             --

Update path (array)

                            Rate            URI      URI::Fast
              URI        64641/s             --           -85%
        URI::Fast       427350/s           561%             --

Parse query

                            Rate            URI      URI::Fast
              URI        37523/s             --           -89%
        URI::Fast       338983/s           803%             --

Set query parameter

                            Rate            URI      URI::Fast
              URI        50176/s             --           -88%
        URI::Fast       429185/s           755%             --

Query form

                            Rate            URI      URI::Fast
              URI        36088/s             --           -87%
        URI::Fast       268097/s           643%             --

Query keys

                            Rate            URI      URI::Fast
              URI        37979/s             --           -87%
        URI::Fast       282486/s           644%             --

Stringification

                            Rate            URI      URI::Fast
              URI        91996/s             --           -65%
        URI::Fast       265957/s           189%             --

uri_split

                            Rate     URI::Split      URI::Fast
       URI::Split       336700/s             --           -44%
        URI::Fast       602410/s            79%             --

Encode

                            RateURI::Encode::XS      URI::Fast
  URI::Encode::XS       706714/s             --           -64%
        URI::Fast      1980198/s           180%             --

Decode

                            RateURI::Encode::XS      URI::Fast
  URI::Encode::XS       970874/s             --            -7%
        URI::Fast      1041667/s             7%             --

AUTHOR

Jeff Ober <sysread@fastmail.fm>

COPYRIGHT AND LICENSE

This software is copyright (c) 2018 by Jeff Ober.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.