Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vietj/http2-test
https://github.com/vietj/http2-test
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/vietj/http2-test
- Owner: vietj
- Created: 2016-05-24T12:54:44.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-06-09T06:51:07.000Z (over 8 years ago)
- Last Synced: 2024-11-08T20:49:54.469Z (2 months ago)
- Language: Java
- Size: 41 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HTTP/1 versus HTTP/2
This bench the time to perform a given number of http requests to a server and outline the queing effect
of HTTP/1 versus the increased concurrency of HTTP/2. It's not a load test.several commands are available:
## Client
An http client
## Backend server
A backend server
## Frontend server
A front end server (that usually accesses the backend server)
## Examples
### A client accesses the front end with HTTP/1 that access the backend with HTTP/1
- java -jar target/http2-test-3.3.0-SNAPSHOT.jar http-backend --delay 20
- java -jar target/http2-test-3.3.0-SNAPSHOT.jar http-frontend http://backend:8080
- java -jar target/http2-test-3.3.0-SNAPSHOT.jar http-client --requests 10000 http://frontend:8080### A client accesses the front end with HTTP/2 that access the backend with HTTP/1
- java -jar target/http2-test-3.3.0-SNAPSHOT.jar http-backend --delay 20
- java -jar target/http2-test-3.3.0-SNAPSHOT.jar http-frontend http://backend:8080
- java -jar target/http2-test-3.3.0-SNAPSHOT.jar http-client --requests 10000 --protocol HTTP_2 http://frontend:8080### A client accesses the front end with HTTP/2 that access the backend with HTTP/2
- java -jar target/http2-test-3.3.0-SNAPSHOT.jar http-backend --delay 20
- java -jar target/http2-test-3.3.0-SNAPSHOT.jar http-frontend --protocol HTTP_2 HTTP_2 http://backend:8080
- java -jar target/http2-test-3.3.0-SNAPSHOT.jar http-client --requests 10000 --protocol HTTP_2 http://frontend:8080### A client accesses the backend with HTTP/2
- java -jar target/http2-test-3.3.0-SNAPSHOT.jar http-backend --delay 20
- java -jar target/http2-test-3.3.0-SNAPSHOT.jar http-client --requests 10000 --protocol HTTP_2 http://backend:8080etc...
You can play with:
- protocols in client and frontend
- concurrency : the max concurrency in HTTP/2
- the connection pool size in the front end server
- number of requests
- backend think time