Created
August 25, 2015 17:51
-
-
Save xsawyerx/5fb092ad24f1bb8ef504 to your computer and use it in GitHub Desktop.
HTTP::Headers vs. HTTP::Headers::Fast vs. HTTP::Headers::Fast::XS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How to read the statistics: | |
* Implementations: | |
- "orig" -> HTTP::Headers | |
- "fast" -> HTTP::Headers::Fast | |
- "fast_xs" -> HTTP::Headers::Fast::XS | |
* Time: how long it took to run | |
* Percentages: Improvement in percentages. | |
(these are not the same as with Benchmark.pm) | |
$ perl -Iblib/lib/ -Iblib/arch/ tools/dumbbenchmark.pl push_header push_header_many get_header set_header | |
HTTP::Headers 6.05, HTTP::Headers::Fast 0.19, HTTP::Headers::Fast::XS 0.001 | |
-- get_header | |
Implementation Time fast_xs fast orig | |
fast_xs 0.0315023333338418 -- 64.57% 73.07% | |
fast 0.08891404601654 -35.43% -- 23.98% | |
orig 0.116968039639523 -26.93% -76.02% -- | |
-- push_header | |
Implementation Time fast_xs fast orig | |
fast_xs 0.00360221045004646 -- 84.37% 88.54% | |
fast 0.0230473160718445 -15.63% -- 26.71% | |
orig 0.0314461402595043 -11.46% -73.29% -- | |
-- push_header_many | |
Implementation Time fast_xs fast orig | |
fast_xs 0.0058503310661763 -- 88.26% 91.09% | |
fast 0.0498328024946639 -11.74% -- 24.15% | |
orig 0.0656968021123879 -8.91% -75.85% -- | |
-- set_header | |
Implementation Time fast_xs fast orig | |
fast_xs 0.0413254822835968 -- 65.16% 77.82% | |
fast 0.118627616700251 -34.84% -- 36.33% | |
orig 0.186306813509788 -22.18% -63.67% -- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment