Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rstoyanchev/async-http-client-perftest

Test the performance of sending a large number of concurrent requests
https://github.com/rstoyanchev/async-http-client-perftest

Last synced: 7 days ago
JSON representation

Test the performance of sending a large number of concurrent requests

Awesome Lists containing this project

README

        

Run The Server
==============

You need to have [node and npm installed](https://github.com/joyent/node/wiki/Installation).

To start the node server:
````
cd node
./start.sh
````

This starts 10 instances of node.js at ports 1330 through 1339. This allows sending up to 1,000 concurrent requests to each instance. In my tests, that's roughly what each node instance can handle before it starts taking a very long time to respond.

Build and Run The Clients
=========================

The client sub-project contains two Java clients -- RestTemplateClient and HttpComponentsClient (NIO-based), which send a large number of concurrent requests (see the source code for details) to read JSON. Each client can be started as a Java application and have a `System.in.read()` at the end to allow you to inspect the memory with something like `jvisualvm` before exiting.