{"repo":"matteofigus/api-benchmark","free":true,"listed":false,"github":"https://github.com/matteofigus/api-benchmark","clone":"git clone https://github.com/matteofigus/api-benchmark.git","description":"A node.js tool to benchmark APIs","language":"JavaScript","stars":310,"topics":["api","benchmark","http"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"api-benchmark A node.js tool that measures and compares performances of single and multiple apis inspired by BenchmarkJs. Why all of this? (blog post) To see an example of a request/response look at this gist. If you want to benchmark your api via grunt take a look at grunt-api-benchmark. Requirements Installation Usage API measure compare getHtml The Route object The Options object Tuning your machine to benchmark Contributing Why all of this? Requirements Node version: min: 4 , recommended: 8 Build status: Unix: Windows: Installation Usage measure(service, routes, [options], callback) Measures performances of a given api for multiple routes compare(services, routes, [options], callback) Compares performances of a given list of api servers with the same routes. Useful in case of load balancers, globalised services, deployment of new versions. All the Http verbs and headers are supported. getHtml(results, callback) Given a results object, gets the html report. Route object method (String, default 'get'): Http verb. route (String): the route to benchmark headers (Object): the headers to send. In case of function (that has to return an object) it will be evaulated for each request. data (Object): the data sent with the request. In case of function (that has to return an object) it will be evaulated for each request. query (Object): the query sent with the request. In case of function (that has to return an object) it will be evaulated for each request. expectedStatusCode (Numbe","default_branch":null,"files":null,"tree":[],"storefront":"/r/matteofigus","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/matteofigus/api-benchmark/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}