mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-25 18:33:24 +00:00
Make all network benchmark run with tap backend and vhost on
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
03aee4a7d7
commit
c8c9b9753e
@ -14,6 +14,7 @@ stop_guest() {
|
||||
trap stop_guest EXIT
|
||||
|
||||
# Run apache bench
|
||||
ab -n 10000 -c 1 http://localhost:8080/index.html
|
||||
echo "Running apache bench connected to $GUEST_SERVER_IP_ADDRESS"
|
||||
ab -n 10000 -c 1 http://$GUEST_SERVER_IP_ADDRESS:8080/index.html
|
||||
|
||||
# The trap will automatically stop the guest VM when the script exits
|
@ -14,6 +14,7 @@ stop_guest() {
|
||||
trap stop_guest EXIT
|
||||
|
||||
# Run apache bench
|
||||
ab -n 10000 -c 20 http://localhost:8080/index.html
|
||||
echo "Running apache bench connected to $GUEST_SERVER_IP_ADDRESS"
|
||||
ab -n 10000 -c 20 http://$GUEST_SERVER_IP_ADDRESS:8080/index.html
|
||||
|
||||
# The trap will automatically stop the guest VM when the script exits
|
Reference in New Issue
Block a user