This is a sample Spring Boot 2 app to demonstrate the raw performance difference between a Spring Boot 2 app vs a Spring Boot 1 app.
./gradlew -p applications/sample-load-target clean bootRun
Assuming that httpie is installed
http POST 'http://localhost:8082/passthrough/messages' id="1" payload="one" delay="1000"
OR with CURL
curl -X "POST" "http://localhost:8082/passthrough/messages" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d $'{
"id": "1",
"payload": "one",
"delay": "1000"
}'
Assuming that httpie is installed
http POST 'http://localhost:8081/passthrough/messages' id="1" payload="one" delay="1000"
OR with CURL
curl -X "POST" "http://localhost:8081/passthrough/messages" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d $'{
"id": "1",
"payload": "one",
"delay": "1000"
}'
Assuming that httpie is installed
http POST 'http://localhost:8083/passthrough/messages' id="1" payload="one" delay="1000"
OR with CURL
curl -X "POST" "http://localhost:8083/passthrough/messages" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d $'{
"id": "1",
"payload": "one",
"delay": "1000"
}'
Assuming that httpie is installed
http POST 'http://localhost:8084/passthrough/messages' id="1" payload="one" delay="1000"
OR with CURL
curl -X "POST" "http://localhost:8084/passthrough/messages" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d $'{
"id": "1",
"payload": "one",
"delay": "1000"
}'
Assuming that httpie is installed
http POST 'http://localhost:8085/passthrough/messages' id="1" payload="one" delay="1000"
OR with CURL
curl -X "POST" "http://localhost:8085/passthrough/messages" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d $'{
"id": "1",
"payload": "one",
"delay": "1000"
}'
./gradlew -p applications/load-scripts -DTARGET_URL=http://localhost:8082 -DSIM_USERS=300 gatlingRun
./gradlew -p applications/load-scripts -DTARGET_URL=http://localhost:8081 -DSIM_USERS=300 gatlingRun
./gradlew -p applications/load-scripts -DTARGET_URL=http://localhost:8083 -DSIM_USERS=300 gatlingRun
./gradlew -p applications/load-scripts -DTARGET_URL=http://localhost:8084 -DSIM_USERS=300 gatlingRun