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) 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 149925/s -- -87% URI::Fast 1176471/s 685% --
Rate URI URI::Fast URI 119474/s -- -87% URI::Fast 952381/s 697% --
Rate URI URI::Fast URI 58720/s -- -91% URI::Fast 653595/s 1013% --
Rate URI URI::Fast URI 79051/s -- -91% URI::Fast 869565/s 1000% --
Rate URI URI::Fast URI 54645/s -- -92% URI::Fast 684932/s 1153% --
Rate URI URI::Fast URI 74627/s -- -86% URI::Fast 549451/s 636% --
Rate URI URI::Fast URI 75472/s -- -82% URI::Fast 427350/s 466% --
Rate URI URI::Fast URI 83195/s -- -87% URI::Fast 632911/s 661% --
Rate URI URI::Fast URI 82440/s -- -82% URI::Fast 465116/s 464% --
Rate URI URI::Fast URI 49407/s -- -87% URI::Fast 390625/s 691% --
Rate URI URI::Fast URI 61200/s -- -86% URI::Fast 423729/s 592% --
Rate URI URI::Fast URI 45537/s -- -85% URI::Fast 298507/s 556% --
Rate URI URI::Fast URI 48473/s -- -84% URI::Fast 303030/s 525% --
Rate URI URI::Fast URI 107296/s -- -70% URI::Fast 355872/s 232% --
Rate URI::Split URI::Fast URI::Split 505051/s -- -60% URI::Fast 1250000/s 147% --
Rate URI::Escape URL::Encode URI::Escape 5031/s -- -26% URL::Encode 6821/s 36% -- URI::Fast 1111111/s 21984% 16190% URI::Encode::XS 1470588/s 29129% 21460%
Rate URI::Escape URL::Encode URI::Escape 5380/s -- -4% URL::Encode 5578/s 4% -- URI::Encode::XS 740741/s 13669% 13181% URI::Fast 813008/s 15012% 14476%
Rate IRI URI::Fast IRI 15413/s -- -98% URI::Fast 943396/s 6021% --
Rate IRI URI::Fast IRI 11387/s -- -97% URI::Fast 450450/s 3856% --
Rate IRI URI::Fast IRI 11795/s -- -97% URI::Fast 393701/s 3238% --
Rate IRI URI::Fast IRI 12674/s -- -98% URI::Fast 588235/s 4541% --
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.