Skip to content

Instantly share code, notes, and snippets.

@dcarley
Last active December 27, 2015 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcarley/7353553 to your computer and use it in GitHub Desktop.
Save dcarley/7353553 to your computer and use it in GitHub Desktop.
➜ router git:(master) ✗ ulimit -n
256
rate 2800 rps latencies
{"latencies"=>
{"mean"=>933760, "95th"=>5358752, "99th"=>60440999, "max"=>60440999},
"bytes_in"=>{"total"=>280000, "mean"=>10},
"bytes_out"=>{"total"=>0, "mean"=>0},
"duration"=>10571394282,
"requests"=>28000,
"success"=>1,
"status_codes"=>{"200"=>28000},
"errors"=>[]}
{"latencies"=>
{"mean"=>1205604, "95th"=>5404202, "99th"=>49079022, "max"=>49079022},
"bytes_in"=>{"total"=>280000, "mean"=>10},
"bytes_out"=>{"total"=>0, "mean"=>0},
"duration"=>11034230559,
"requests"=>28000,
"success"=>1,
"status_codes"=>{"200"=>28000},
"errors"=>[]}
rate 2900 rps latencies [25/1816]
{"latencies"=>
{"mean"=>88983513,
"95th"=>1027585078,
"99th"=>7082199269,
"max"=>7082199269},
"bytes_in"=>{"total"=>191870, "mean"=>6.6162068965517244},
"bytes_out"=>{"total"=>0, "mean"=>0},
"duration"=>36787574712,
"requests"=>29000,
"success"=>0.6616206896551724,
"status_codes"=>{"0"=>9813, "200"=>19187},
"errors"=>
["Get http://localhost:3160/one: dial tcp 127.0.0.1:3160: too many open files",
"Get http://localhost:3161/two: dial tcp [::1]:3161: too many open files",
"Get http://localhost:3160/one: dial tcp 127.0.0.1:3160: connection refused",
"Get http://localhost:3161/two: dial tcp 127.0.0.1:3161: too many open files",
"Get http://localhost:3160/one: lookup localhost: no such host",
"Get http://localhost:3161/two: lookup localhost: no such host",
"Get http://localhost:3160/one: dial tcp 127.0.0.1:3160: can't assign requested address",
"Get http://localhost:3161/two: dial tcp 127.0.0.1:3161: can't assign requested address",
"Get http://localhost:3161/two: dial tcp 127.0.0.1:3161: connection refused"]}
{"latencies"=>
{"mean"=>136767250,
"95th"=>529023499,
"99th"=>9226616809,
"max"=>9226616809},
"bytes_in"=>{"total"=>134790, "mean"=>4.647931034482759},
"bytes_out"=>{"total"=>0, "mean"=>0},
"duration"=>35049913116,
"requests"=>29000,
"success"=>0.46479310344827585,
"status_codes"=>{"0"=>15069, "200"=>13479, "500"=>451, "504"=>1},
"errors"=>
["Get http://127.0.0.1:3169/two: EOF",
"Get http://127.0.0.1:3169/one: EOF",
"Get http://127.0.0.1:3169/one: read tcp 127.0.0.1:3169: connection reset by peer",
"Get http://127.0.0.1:3169/two: read tcp 127.0.0.1:3169: connection reset by peer",
"Get http://127.0.0.1:3169/one: dial tcp 127.0.0.1:3169: too many open files",
"Get http://127.0.0.1:3169/one: dial tcp 127.0.0.1:3169: can't assign requested address",
"Get http://127.0.0.1:3169/two: dial tcp 127.0.0.1:3169: can't assign requested address",
"Get http://127.0.0.1:3169/two: dial tcp 127.0.0.1:3169: connection refused",
"Get http://127.0.0.1:3169/two: dial tcp 127.0.0.1:3169: too many open files"]}
➜ router git:(master) ✗ go run spec/test_backends/simple_backend.go -port 8082 &
[1] 99084
➜ router git:(master) ✗ echo "GET http://localhost:8082" | ./vegeta attack -rate 7500 | ./vegeta report --reporter json | python -mjson.tool
2013/11/07 13:15:11 Vegeta is attacking 1 targets in random order for 10s...
2013/11/07 13:15:21 Done!
2013/11/07 13:15:21 Writing results to 'stdout'...
{
"bytes_in": {
"mean": 15,
"total": 1125000
},
"bytes_out": {
"mean": 0,
"total": 0
},
"duration": 10448456506,
"errors": [],
"latencies": {
"95th": 987474,
"99th": 36471365,
"max": 36471365,
"mean": 234414
},
"requests": 75000,
"status_codes": {
"200": 75000
},
"success": 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment