NetSPI / httpillage

MIT License
25 stars 3 forks source link

Refactor to use Net::HTTP #30

Open forced-request opened 8 years ago

forced-request commented 8 years ago

A performance issue was discovered that seems to be related to the use of Mechanize.

Initial tests indicate that raw Net::HTTP GET queries are about 10x faster than leveraging Mechanize's get method. In these test cases the post request resulted in a server error causing significant latency. These tests should be taken with a grain of salt.

Tests with 5 threads and 100 requests on ruby 2.2.3p173 resulted in the following runtimes:

Tests with 5 threads and 100 requests on jruby 9.0.1.0 (2.2.2) resulted in the following runtimes: