/web-client-test

Performance tests for various HTTP clients

Primary LanguageJava

HTTP Client Test

Performance tests for various HTTP clients.

Available HTTP Clients

Name Description
OKHTTP OkHttp 4.x
JAVA Standard Java HTTP Client
AHC AsyncHttpClient 2.12
APACHE Apache HTTP Client 5.x
NETTY Netty - Sigle Channel

Run HTTP Client Test

TEST_APP_HOME=~/web-client-test

JAVA_OPTS=-XX:MaxRAMPercentage=50 -XX:+AlwaysActAsServerClassMachine --add-opens java.base/jdk.internal.misc=ALL-UNNAMED -Dio.netty.tryReflectionSetAccessible=true

API_KEY="<API_KEY>"
API_SECRET="<API_SECRET>"

TEST_CLASS=deltix.web.client.WebClientTest
WAIT_PERIOD=200
BATCH_COUNT=20
REQUEST_IN_BATCH=5
NATIVE_IO=false

java $JAVA_OPTS -cp $TEST_APP_HOME/* $TEST_CLASS $API_KEY $API_SECRET NETTY,OKHTTP,JAVA,AHC,APACHE $WAIT_PERIOD $BATCH_COUNT $REQUEST_IN_BATCH $NATIVE_IO