Various operations comparing URI::Fast against URI's performance. The script to recreate is included in the bench folder of the distribution.
bench
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.
Rate URI URI::Fast URI 52576/s -- -87% URI::Fast 400000/s 661% --
Rate URI URI::Fast URI 40750/s -- -86% URI::Fast 290698/s 613% --
Rate URI URI::Fast URI 22738/s -- -89% URI::Fast 214592/s 844% --
Rate URI URI::Fast URI 27793/s -- -88% URI::Fast 228311/s 721% --
Rate URI URI::Fast URI 20056/s -- -91% URI::Fast 234742/s 1070% --
Rate URI URI::Fast URI 37850/s -- -81% URI::Fast 201613/s 433% --
Rate URI URI::Fast URI 28090/s -- -79% URI::Fast 132626/s 372% --
Rate URI URI::Fast URI 30769/s -- -87% URI::Fast 242718/s 689% --
Rate URI URI::Fast URI 30175/s -- -83% URI::Fast 181818/s 503% --
Rate URI URI::Fast URI 17999/s -- -88% URI::Fast 147929/s 722% --
Rate URI URI::Fast URI 24108/s -- -85% URI::Fast 163934/s 580% --
Rate URI URI::Fast URI 18671/s -- -87% URI::Fast 139665/s 648% --
Rate URI URI::Fast URI 19246/s -- -87% URI::Fast 153846/s 699% --
Rate URI URI::Fast URI 44053/s -- -74% URI::Fast 167785/s 281% --
Rate URI::Split URI::Fast URI::Split 214592/s -- -61% URI::Fast 549451/s 156% --
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%
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%
Rate IRI URI::Fast IRI 7645/s -- -98% URI::Fast 454545/s 5845% --
Rate IRI URI::Fast IRI 6238/s -- -98% URI::Fast 256410/s 4010% --
Rate IRI URI::Fast IRI 6339/s -- -97% URI::Fast 185874/s 2832% --
Rate IRI URI::Fast IRI 5817/s -- -98% URI::Fast 243902/s 4093% --
To install URI::Fast, copy and paste the appropriate command in to your terminal.
cpanm
cpanm URI::Fast
CPAN shell
perl -MCPAN -e shell install URI::Fast
For more information on module installation, please visit the detailed CPAN module installation guide.