NAME

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

VERSION

version 0.06

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        97656/s             --           -88%
URI::Fast       793651/s           713%             --

Parse scheme

                    Rate            URI      URI::Fast
      URI        84317/s             --           -87%
URI::Fast       657895/s           680%             --

Update scheme

                    Rate            URI      URI::Fast
      URI        53362/s             --           -85%
URI::Fast       344828/s           546%             --

Parse authorization

                    Rate            URI      URI::Fast
      URI        67204/s             --           -90%
URI::Fast       657895/s           879%             --

Update authorization

                    Rate            URI      URI::Fast
      URI        43706/s             --           -91%
URI::Fast       495050/s          1033%             --

Parse path (scalar)

                    Rate            URI      URI::Fast
      URI        82781/s             --           -86%
URI::Fast       574713/s           594%             --

Parse path (list)

                    Rate            URI      URI::Fast
      URI        59382/s             --           -84%
URI::Fast       362319/s           510%             --

Update path (scalar)

                    Rate            URI      URI::Fast
      URI        62422/s             --           -87%
URI::Fast       495050/s           693%             --

Update path (array)

                    Rate            URI      URI::Fast
      URI        67935/s             --           -83%
URI::Fast       390625/s           475%             --

Parse query

                    Rate            URI      URI::Fast
      URI        78740/s             --           -77%
URI::Fast       347222/s           341%             --

Set query parameter

                    Rate            URI      URI::Fast
      URI        49801/s             --           -76%
URI::Fast       209205/s           320%             --

Stringification

                    Rate            URI      URI::Fast
      URI        88496/s             --           -75%
URI::Fast       354610/s           301%             --

uri_split

                     Rate     URI::Split      URI::Fast
URI::Split       318471/s             --           -46%
 URI::Fast       588235/s            85%             --

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.