# PODNAME: URI::Fast::Benchmarks
# ABSTRACT: Benchmarks comparing URI::Fast and URI

__END__

=pod

=encoding UTF-8

=head1 NAME

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

=head1 VERSION

version 0.18

=head1 BENCHMARKS

Various operations comparing L<URI::Fast> against L<URI>'s performance. The
script to recreate is included in the C<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
L<perlbrew|https://perlbrew.pl>.

=head2 Constructor

                            Rate            IRI            URI
              IRI        14762/s             --           -85%
              URI       101215/s           586%             --
        URI::Fast       769231/s          5111%           660%

=head2 Parse scheme

                            Rate            IRI            URI
              IRI        13224/s             --           -85%
              URI        88339/s           568%             --
        URI::Fast       694444/s          5151%           686%

=head2 Update scheme

                            Rate            IRI            URI
              IRI        19099/s             --           -64%
              URI        53476/s           180%             --
        URI::Fast       675676/s          3438%          1164%

=head2 Parse authorization

                            Rate            IRI            URI
              IRI        12658/s             --           -80%
              URI        63776/s           404%             --
        URI::Fast       675676/s          5238%           959%

=head2 Update authorization

                            Rate            IRI            URI
              IRI        13113/s             --           -68%
              URI        41494/s           216%             --
        URI::Fast       581395/s          4334%          1301%

=head2 Parse path (scalar)

                            Rate            IRI            URI
              IRI        12987/s             --           -85%
              URI        84746/s           553%             --
        URI::Fast       490196/s          3675%           478%

=head1 AUTHOR

Jeff Ober <sysread@fastmail.fm>

=head1 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.

=cut
