Last active
August 29, 2015 14:10
-
-
Save methane/70e50bef1a36f577c5a5 to your computer and use it in GitHub Desktop.
Hello bench on c3.xlarge
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ec2-user@ip-10-0-1-177 wrk]$ ./wrk -t1 -c1 -d3s http://10.0.1.150:8000/ | |
Running 3s test @ http://10.0.1.150:8000/ | |
1 threads and 1 connections | |
Thread Stats Avg Stdev Max +/- Stdev | |
Latency 135.24us 9.92us 453.00us 91.03% | |
Req/Sec 7.51k 426.94 8.11k 61.60% | |
21401 requests in 3.00s, 2.37MB read | |
Requests/sec: 7133.98 | |
Transfer/sec: 808.15KB | |
[ec2-user@ip-10-0-1-177 wrk]$ ./wrk -t4 -c100 -d10s http://10.0.1.150:8000/ | |
Running 10s test @ http://10.0.1.150:8000/ | |
4 threads and 100 connections | |
Thread Stats Avg Stdev Max +/- Stdev | |
Latency 1.09ms 1.10ms 38.06ms 96.62% | |
Req/Sec 23.96k 2.68k 37.56k 67.99% | |
905800 requests in 10.00s, 100.21MB read | |
Requests/sec: 90592.08 | |
Transfer/sec: 10.02MB | |
[ec2-user@ip-10-0-1-177 wrk]$ ./wrk -t4 -c100 -d10s http://10.0.1.150:8000/ | |
Running 10s test @ http://10.0.1.150:8000/ | |
4 threads and 100 connections | |
Thread Stats Avg Stdev Max +/- Stdev | |
Latency 1.09ms 1.09ms 28.36ms 96.71% | |
Req/Sec 24.14k 2.56k 38.33k 68.47% | |
912182 requests in 10.00s, 100.91MB read | |
Requests/sec: 91228.83 | |
Transfer/sec: 10.09MB |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ec2-user@ip-10-0-1-177 wrk]$ ./wrk -t1 -c1 -d3s http://10.0.1.150:8000/ | |
Running 3s test @ http://10.0.1.150:8000/ | |
1 threads and 1 connections | |
Thread Stats Avg Stdev Max +/- Stdev | |
Latency 138.76us 27.98us 555.00us 99.37% | |
Req/Sec 7.39k 419.54 8.22k 60.80% | |
20963 requests in 3.00s, 2.32MB read | |
Requests/sec: 6988.17 | |
Transfer/sec: 791.63KB | |
[ec2-user@ip-10-0-1-177 wrk]$ ./wrk -t4 -c100 -d10s http://10.0.1.150:8000/ | |
Running 10s test @ http://10.0.1.150:8000/ | |
4 threads and 100 connections | |
Thread Stats Avg Stdev Max +/- Stdev | |
Latency 1.17ms 1.28ms 40.28ms 96.30% | |
Req/Sec 22.65k 2.18k 30.33k 68.12% | |
854809 requests in 10.00s, 94.56MB read | |
Requests/sec: 85495.28 | |
Transfer/sec: 9.46MB | |
[ec2-user@ip-10-0-1-177 wrk]$ ./wrk -t4 -c100 -d10s http://10.0.1.150:8000/ | |
Running 10s test @ http://10.0.1.150:8000/ | |
4 threads and 100 connections | |
Thread Stats Avg Stdev Max +/- Stdev | |
Latency 1.16ms 1.20ms 26.66ms 96.43% | |
Req/Sec 22.57k 2.22k 36.33k 69.52% | |
853796 requests in 10.00s, 94.45MB read | |
Requests/sec: 85391.29 | |
Transfer/sec: 9.45MB | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"log" | |
"net/http" | |
"strconv" | |
) | |
var body = []byte("Hello, World!\n") | |
var contentLength = strconv.Itoa(len(body)) | |
func hello(w http.ResponseWriter, r *http.Request) { | |
cl := strconv.Itoa(len(body)) | |
h := w.Header() | |
h.Set("Content-Length", cl) | |
h.Set("Content-Type", "text/plain") | |
w.Write(body) | |
} | |
func main() { | |
log.Fatal(http.ListenAndServe(":8000", http.HandlerFunc(hello))) | |
} | |
// GOGC=400 GOMAXPROCS=8 ./hello |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BODY = b"Hello, World!\n" | |
CONTENT_LENGTH = str(len(BODY)) | |
def application(env, start): | |
start("200 OK", [('Content-Length', CONTENT_LENGTH), ('Content-Type', 'text/plain')]) | |
return [BODY] | |
# gunicorn hello:application -k minefield.gminefield.MinefieldWorker -b :8000 --keep-alive 120 -w 4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ec2-user@ip-10-0-1-177 wrk]$ ./wrk -t1 -c1 -d3s http://10.0.1.150:8000/ | |
Running 3s test @ http://10.0.1.150:8000/ | |
1 threads and 1 connections | |
Thread Stats Avg Stdev Max +/- Stdev | |
Latency 123.78us 3.84us 152.00us 87.70% | |
Req/Sec 8.13k 414.45 8.78k 45.60% | |
23186 requests in 3.00s, 3.63MB read | |
Requests/sec: 7729.12 | |
Transfer/sec: 1.21MB | |
[ec2-user@ip-10-0-1-177 wrk]$ ./wrk -t4 -c100 -d10s http://10.0.1.150:8000/ | |
Running 10s test @ http://10.0.1.150:8000/ | |
4 threads and 100 connections | |
Thread Stats Avg Stdev Max +/- Stdev | |
Latency 1.37ms 770.70us 19.94ms 69.37% | |
Req/Sec 21.07k 6.96k 39.56k 74.10% | |
796628 requests in 10.00s, 124.59MB read | |
Requests/sec: 79674.38 | |
Transfer/sec: 12.46MB | |
[ec2-user@ip-10-0-1-177 wrk]$ ./wrk -t4 -c100 -d10s http://10.0.1.150:8000/ | |
Running 10s test @ http://10.0.1.150:8000/ | |
4 threads and 100 connections | |
Thread Stats Avg Stdev Max +/- Stdev | |
Latency 1.25ms 790.41us 5.96ms 67.99% | |
Req/Sec 21.17k 1.73k 27.00k 68.34% | |
799918 requests in 10.00s, 125.11MB read | |
Requests/sec: 80004.74 | |
Transfer/sec: 12.51MB | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ec2-user@ip-10-0-1-177 wrk]$ ./wrk -t1 -c1 -d3s http://10.0.1.150:8000/ | |
Running 3s test @ http://10.0.1.150:8000/ | |
1 threads and 1 connections | |
Thread Stats Avg Stdev Max +/- Stdev | |
Latency 125.33us 4.54us 158.00us 78.95% | |
Req/Sec 8.12k 440.74 8.78k 80.00% | |
22971 requests in 3.00s, 3.61MB read | |
Requests/sec: 7657.55 | |
Transfer/sec: 1.20MB | |
[ec2-user@ip-10-0-1-177 wrk]$ ./wrk -t4 -c100 -d10s http://10.0.1.150:8000/ | |
Running 10s test @ http://10.0.1.150:8000/ | |
4 threads and 100 connections | |
Thread Stats Avg Stdev Max +/- Stdev | |
Latency 1.04ms 334.05us 10.35ms 86.31% | |
Req/Sec 25.45k 3.36k 37.67k 63.51% | |
961963 requests in 10.00s, 151.37MB read | |
Requests/sec: 96212.68 | |
Transfer/sec: 15.14MB | |
[ec2-user@ip-10-0-1-177 wrk]$ ./wrk -t4 -c100 -d10s http://10.0.1.150:8000/ | |
Running 10s test @ http://10.0.1.150:8000/ | |
4 threads and 100 connections | |
Thread Stats Avg Stdev Max +/- Stdev | |
Latency 1.06ms 643.00us 10.18ms 74.32% | |
Req/Sec 25.40k 3.33k 34.33k 63.36% | |
958227 requests in 10.00s, 150.78MB read | |
Requests/sec: 95838.76 | |
Transfer/sec: 15.08MB | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
worker_processes 4; | |
daemon off; | |
events { | |
worker_connections 10000; | |
} | |
http { | |
include mime.types; | |
access_log off; | |
sendfile on; | |
tcp_nopush on; | |
tcp_nodelay on; | |
etag off; | |
server { | |
listen 8000; | |
location / { | |
default_type text/plain; | |
echo "hello, world!"; | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ec2-user@ip-10-0-1-177 wrk]$ ./wrk -t1 -c1 -d3s http://10.0.1.150:8000/ | |
Running 3s test @ http://10.0.1.150:8000/ | |
1 threads and 1 connections | |
Thread Stats Avg Stdev Max +/- Stdev | |
Latency 111.95us 5.65us 144.00us 76.76% | |
Req/Sec 8.91k 479.23 9.89k 57.20% | |
25376 requests in 3.00s, 4.48MB read | |
Requests/sec: 8459.24 | |
Transfer/sec: 1.49MB | |
[ec2-user@ip-10-0-1-177 wrk]$ | |
[ec2-user@ip-10-0-1-177 wrk]$ ./wrk -t4 -c100 -d10s http://10.0.1.150:8000/ | |
Running 10s test @ http://10.0.1.150:8000/ | |
4 threads and 100 connections | |
Thread Stats Avg Stdev Max +/- Stdev | |
Latency 809.42us 317.70us 9.32ms 94.98% | |
Req/Sec 31.74k 1.91k 44.78k 63.15% | |
1185528 requests in 10.00s, 209.11MB read | |
Requests/sec: 118565.64 | |
Transfer/sec: 20.91MB | |
[ec2-user@ip-10-0-1-177 wrk]$ ./wrk -t4 -c100 -d10s http://10.0.1.150:8000/ | |
Running 10s test @ http://10.0.1.150:8000/ | |
4 threads and 100 connections | |
Thread Stats Avg Stdev Max +/- Stdev | |
Latency 808.76us 320.03us 12.77ms 95.28% | |
Req/Sec 31.75k 1.92k 50.22k 65.86% | |
1188173 requests in 10.00s, 209.57MB read | |
Requests/sec: 118836.25 | |
Transfer/sec: 20.96MB |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment