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.09

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        90744/s             --           -89%
        URI::Fast       826446/s           811%             --

Parse scheme

                            Rate            URI      URI::Fast
              URI        83822/s             --           -88%
        URI::Fast       675676/s           706%             --

Update scheme

                            Rate            URI      URI::Fast
              URI        50710/s             --           -93%
        URI::Fast       684932/s          1251%             --

Parse authorization

                            Rate            URI      URI::Fast
              URI        67069/s             --           -91%
        URI::Fast       719424/s           973%             --

Update authorization

                            Rate            URI      URI::Fast
              URI        44248/s             --           -92%
        URI::Fast       581395/s          1214%             --

Parse path (scalar)

                            Rate            URI      URI::Fast
              URI        83195/s             --           -83%
        URI::Fast       497512/s           498%             --

Parse path (list)

                            Rate            URI      URI::Fast
              URI        59701/s             --           -81%
        URI::Fast       314465/s           427%             --

Update path (scalar)

                            Rate            URI      URI::Fast
              URI        67340/s             --           -88%
        URI::Fast       564972/s           739%             --

Update path (array)

                            Rate            URI      URI::Fast
              URI        67385/s             --           -84%
        URI::Fast       413223/s           513%             --

Parse query

                            Rate            URI      URI::Fast
              URI        37133/s             --           -90%
        URI::Fast       357143/s           862%             --

Set query parameter

                            Rate            URI      URI::Fast
              URI        50251/s             --           -88%
        URI::Fast       432900/s           761%             --

Query form

                            Rate            URI      URI::Fast
              URI        36914/s             --           -86%
        URI::Fast       268817/s           628%             --

Query keys

                            Rate            URI      URI::Fast
              URI        37693/s             --           -87%
        URI::Fast       299401/s           694%             --

Stringification

                            Rate            URI      URI::Fast
              URI        88496/s             --           -75%
        URI::Fast       349650/s           295%             --

uri_split

                            Rate     URI::Split      URI::Fast
       URI::Split       334448/s             --           -44%
        URI::Fast       595238/s            78%             --

Encode

                            RateURI::Encode::XS      URI::Fast
  URI::Encode::XS       722022/s             --           -66%
        URI::Fast      2150538/s           198%             --

Decode

                            RateURI::Encode::XS      URI::Fast
  URI::Encode::XS       975610/s             --            -6%
        URI::Fast      1036269/s             6%             --

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.