![]() ![]() Pycurlb, abbreviation of Python cURL Benchmark, is based on pycurl which is a Python wrapper around libcurl. To ease our work, we decided to create a tool based on libcurl and accurately designed to two tasks: Run a single HTTP request and report connection information. Moreover, the desired output is actually difficult to obtain from command line, in case of a complex one like a JSON, you have create a template file or fight with characters escaping. In the command above, we reach our goal but firstly there are options we will always use: -o and -s because we don't care about curl's output. But if dig under the surface, curl is actually just a user interface for its powerful library libcurl and where cURL provides more than 50 command options, libcurl let you the opportunity to forge any kind HTTP request.įor debug purpose, curl has an option named -write-out allowing users to export data about connection and response. This software is considered like the swiss knife of HTTP client and despite it supports much more protocols, most of the people use it just for just to download a file or communicate with REST APIs. In the past, in order to fill these requirements, I used the well-known command line tool "client URL Request Library" also known as cURL. Get other TCP timings: DNS, SSL handshake and more have to be known. ![]() Run only a single request: We wanted the opportunity to test a link in idle state or bursted by another stress tool.ApacheBenchmark (ab), wrk, httperf, we regularly use these software for what they bring but they also provide a methodology which isn't adapted to some of our goal. Many tools exist around the globe to get performance data for a HTTP connection but we can consider them as stress tools: They focus on launching an amount of request and output statistical aggregations of latency, throughput and rate. ![]()
0 Comments
Leave a Reply. |