Create a gist now

Instantly share code, notes, and snippets.

Comparing LWP, HTTP::Tiny, NetCurl and Hijk with different body sizes - 10,000 read/write requests x 3 runs

Body: 11 bytes

Write:
         s/iter      LWP HTTPTiny  NetCurl     Hijk
LWP        8.58       --     -43%     -60%     -64%
HTTPTiny   4.92      75%       --     -31%     -37%
NetCurl    3.42     151%      44%       --     -10%
Hijk       3.07     179%      60%      11%       --
Read:
         s/iter      LWP HTTPTiny  NetCurl     Hijk
LWP        7.98       --     -49%     -62%     -65%
HTTPTiny   4.10      94%       --     -26%     -31%
NetCurl    3.02     164%      36%       --      -7%
Hijk       2.81     184%      46%       7%       --

Body: 1,010 bytes

Write:
         s/iter      LWP HTTPTiny  NetCurl     Hijk
LWP        9.06       --     -44%     -62%     -65%
HTTPTiny   5.04      80%       --     -32%     -37%
NetCurl    3.45     163%      46%       --      -9%
Hijk       3.15     187%      60%       9%       --
Read:
         s/iter      LWP HTTPTiny  NetCurl     Hijk
LWP        8.63       --     -51%     -64%     -67%
HTTPTiny   4.23     104%       --     -27%     -32%
NetCurl    3.07     181%      38%       --      -7%
Hijk       2.86     201%      48%       7%       --

Body: 10,010 bytes

Write:
         s/iter      LWP HTTPTiny  NetCurl     Hijk
LWP        9.01       --     -40%     -60%     -64%
HTTPTiny   5.40      67%       --     -33%     -40%
NetCurl    3.60     150%      50%       --     -10%
Hijk       3.24     178%      67%      11%       --
Read:
         s/iter      LWP HTTPTiny  NetCurl     Hijk
LWP        8.96       --     -49%     -63%     -65%
HTTPTiny   4.54      97%       --     -26%     -31%
NetCurl    3.35     167%      36%       --      -6%
Hijk       3.14     185%      45%       7%       --

Body: 100,010 bytes

Write:
         s/iter      LWP HTTPTiny  NetCurl     Hijk
LWP        12.7       --     -32%     -43%     -49%
HTTPTiny   8.63      48%       --     -16%     -25%
NetCurl    7.22      77%      20%       --     -11%
Hijk       6.46      97%      34%      12%       --
Read:
         s/iter      LWP HTTPTiny  NetCurl     Hijk
LWP        19.1       --     -50%     -63%     -63%
HTTPTiny   9.61      98%       --     -26%     -27%
NetCurl    7.10     168%      35%       --      -1%
Hijk       7.03     171%      37%       1%       --

Body: 300,010 bytes

Write:
         s/iter      LWP  NetCurl HTTPTiny     Hijk
LWP        17.5       --     -25%     -27%     -43%
NetCurl    13.2      33%       --      -2%     -25%
HTTPTiny   12.9      36%       2%       --     -23%
Hijk       9.95      76%      32%      29%       --
Read:
         s/iter      LWP HTTPTiny  NetCurl     Hijk
LWP        44.5       --     -51%     -57%     -65%
HTTPTiny   21.7     105%       --     -12%     -28%
NetCurl    19.0     134%      14%       --     -18%
Hijk       15.6     184%      39%      22%       --
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment