Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/rstoyanchev/async-http-client-perftest
- Owner: rstoyanchev
- Created: 2012-06-25T15:29:37.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-06-25T22:03:05.000Z (over 12 years ago)
- Last Synced: 2023-03-11T19:37:02.151Z (over 1 year ago)
- Language: Java
- Size: 109 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.