Skip to content

Instantly share code, notes, and snippets.

@paitonic
Created September 27, 2020 05:51
Show Gist options
  • Save paitonic/58e0747cc4b0ceae53c04d63f4fd0ce9 to your computer and use it in GitHub Desktop.
Save paitonic/58e0747cc4b0ceae53c04d63f4fd0ce9 to your computer and use it in GitHub Desktop.
aws-load-testing
t2.nano
### Elastic Beanstalk, Single Instance
# single task
siege \
--concurrent=10 \
--reps=100 \
--header="Authorization: Bearer abc" \
http://some-ec2-instance.compute-1.amazonaws.com/task/1
** SIEGE 4.0.4
** Preparing 10 concurrent users for battle.
The server is now under siege...
Transactions: 1000 hits
Availability: 100.00 %
Elapsed time: 36.03 secs
Data transferred: 0.44 MB
Response time: 0.36 secs
Transaction rate: 27.75 trans/sec
Throughput: 0.01 MB/sec
Concurrency: 9.92
Successful transactions: 1000
Failed transactions: 0
Longest transaction: 0.54
Shortest transaction: 0.33
siege \
--concurrent=100 \
--reps=10 \
--header="Authorization: Bearer abc" \
http://some-ec2-instance.compute-1.amazonaws.com/task/1
** SIEGE 4.0.4
** Preparing 100 concurrent users for battle.
The server is now under siege...
Transactions: 1000 hits
Availability: 100.00 %
Elapsed time: 18.82 secs
Data transferred: 0.44 MB
Response time: 1.79 secs
Transaction rate: 53.13 trans/sec
Throughput: 0.02 MB/sec
Concurrency: 95.05
Successful transactions: 1000
Failed transactions: 0
Longest transaction: 2.18
Shortest transaction: 0.39
------------
# list of tasks
siege \
--concurrent=10 \
--reps=100 \
--header="Authorization: Bearer abc" \
http://some-ec2-instance.compute-1.amazonaws.com/task/
** SIEGE 4.0.4
** Preparing 10 concurrent users for battle.
The server is now under siege...
Transactions: 1000 hits
Availability: 100.00 %
Elapsed time: 37.19 secs
Data transferred: 2.50 MB
Response time: 0.36 secs
Transaction rate: 26.89 trans/sec
Throughput: 0.07 MB/sec
Concurrency: 9.73
Successful transactions: 1000
Failed transactions: 0
Longest transaction: 1.41
Shortest transaction: 0.33
siege \
--concurrent=100 \
--reps=10 \
--header="Authorization: Bearer abc" \
http://some-ec2-instance.compute-1.amazonaws.com/task/
** SIEGE 4.0.4
** Preparing 100 concurrent users for battle.
The server is now under siege...
Transactions: 1000 hits
Availability: 100.00 %
Elapsed time: 20.42 secs
Data transferred: 2.50 MB
Response time: 1.94 secs
Transaction rate: 48.97 trans/sec
Throughput: 0.12 MB/sec
Concurrency: 95.14
Successful transactions: 1000
Failed transactions: 0
Longest transaction: 3.00
Shortest transaction: 0.38
--------------------
#### Lambda
# single task
siege \
--concurrent=10 \
--reps=100 \
--header="Authorization: Bearer abc" \
https://some-lambda.execute-api.us-east-1.amazonaws.com/api/task/1
** SIEGE 4.0.4
** Preparing 10 concurrent users for battle.
The server is now under siege...
Transactions: 1000 hits
Availability: 100.00 %
Elapsed time: 61.77 secs
Data transferred: 0.33 MB
Response time: 0.57 secs
Transaction rate: 16.19 trans/sec
Throughput: 0.01 MB/sec
Concurrency: 9.18
Successful transactions: 1000
Failed transactions: 0
Longest transaction: 4.56
Shortest transaction: 0.44
siege \
--concurrent=100 \
--reps=10 \
--header="Authorization: Bearer abc" \
https://some-lambda.execute-api.us-east-1.amazonaws.com/api/task/1
** SIEGE 4.0.4
** Preparing 100 concurrent users for battle.
The server is now under siege...
Transactions: 1000 hits
Availability: 100.00 %
Elapsed time: 14.60 secs
Data transferred: 0.33 MB
Response time: 1.29 secs
Transaction rate: 68.49 trans/sec
Throughput: 0.02 MB/sec
Concurrency: 88.31
Successful transactions: 1000
Failed transactions: 0
Longest transaction: 3.77
Shortest transaction: 0.46
# list of tasks
siege \
--concurrent=10 \
--reps=100 \
--header="Authorization: Bearer abc" \
https://some-lambda.execute-api.us-east-1.amazonaws.com/api/task/
** SIEGE 4.0.4
** Preparing 10 concurrent users for battle.
The server is now under siege...
Transactions: 1000 hits
Availability: 100.00 %
Elapsed time: 58.19 secs
Data transferred: 1.55 MB
Response time: 0.57 secs
Transaction rate: 17.19 trans/sec
Throughput: 0.03 MB/sec
Concurrency: 9.76
Successful transactions: 1000
Failed transactions: 0
Longest transaction: 1.20
Shortest transaction: 0.46
siege \
--concurrent=100 \
--reps=10 \
--header="Authorization: Bearer abc" \
https://some-lambda.execute-api.us-east-1.amazonaws.com/api/task/
** SIEGE 4.0.4
** Preparing 100 concurrent users for battle.
The server is now under siege...
Transactions: 1000 hits
Availability: 100.00 %
Elapsed time: 14.83 secs
Data transferred: 1.55 MB
Response time: 1.40 secs
Transaction rate: 67.43 trans/sec
Throughput: 0.10 MB/sec
Concurrency: 94.57
Successful transactions: 1000
Failed transactions: 0
Longest transaction: 3.26
Shortest transaction: 0.53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment