Skip to content

Instantly share code, notes, and snippets.

@gregoryyoung
Created April 18, 2013 18:24
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 gregoryyoung/5415041 to your computer and use it in GitHub Desktop.
Save gregoryyoung/5415041 to your computer and use it in GitHub Desktop.
httplistener
EventStore local node (serving full feeds, no reverse proxy)
greg@ouroboros:~/src/wrk$ ./wrk -c 20 -d 10 -t 10 http://127.0.0.1:2115/streams/newstream
Running 10s test @ http://127.0.0.1:2115/streams/newstream
10 threads and 20 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 2.37ms 8.95ms 105.88ms 99.10%
Req/Sec 0.00 0.00 0.00 100.00%
22099 requests in 10.00s, 61.83MB read
Socket errors: connect 0, read 0, write 0, timeout 44
Requests/sec: 2209.62
Transfer/sec: 6.18MB
see bottom for generated data (generated per request)
events (with proxy no pipelining)
greg@ouroboros:~/src/wrk$ ./wrk -c 20 -d 10 -t 10 http://127.0.0.1:2115/streams/newstream/event/1
Running 10s test @ http://127.0.0.1:2115/streams/newstream/event/1
10 threads and 20 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 55.19us 69.70us 1.13ms 96.87%
Req/Sec 12.70k 10.43k 25.00k 58.51%
1308855 requests in 10.00s, 820.08MB read
Socket errors: connect 0, read 0, write 0, timeout 38
Requests/sec: 130863.03
Transfer/sec: 81.99MB
greg@ouroboros:~/src/wrk$ curl -v http://127.0.0.1:2115/streams/newstream* About to connect() to 127.0.0.1 port 2115 (#0)
* Trying 127.0.0.1... connected
> GET /streams/newstream HTTP/1.1
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: 127.0.0.1:2115
> Accept: */*
>
< HTTP/1.1 200 OK
< Access-Control-Allow-Methods: DELETE, GET, POST, OPTIONS
< Access-Control-Allow-Headers: Content-Type, X-Requested-With, X-PINGOTHER
< Access-Control-Allow-Origin: *
< Cache-Control: max-age=0, no-cache, must-revalidate
< Vary: Accept
< ETag: "1;248368668"
< Content-Type: application/vnd.eventstore.atom+json; charset: utf-8
< Server: Mono-HTTPAPI/1.0
< Content-Length: 2414
< Accept-Ranges: bytes
< Date: Thu, 18 Apr 2013 18:23:58 GMT
< X-Varnish: 1605947229
< Age: 0
< Via: 1.1 varnish
< Connection: keep-alive
<
{
"title": "Event stream 'newstream'",
"id": "http://127.0.0.1:2115/streams/newstream",
"updated": "2013-04-18T03:06:53.464809Z",
"author": {
"name": "EventStore"
},
"headOfStream": true,
"selfUrl": "http://127.0.0.1:2115/streams/newstream",
"eTag": "1;-43840953",
"links": [
{
"uri": "http://127.0.0.1:2115/streams/newstream",
"relation": "self"
},
{
"uri": "http://127.0.0.1:2115/streams/newstream",
"relation": "first"
},
{
"uri": "http://127.0.0.1:2115/streams/newstream/range/19/20",
"relation": "last"
},
{
"uri": "http://127.0.0.1:2115/streams/newstream/range/21/20",
"relation": "previous"
}
],
"entries": [
{
"title": "1@newstream",
"id": "http://127.0.0.1:2115/streams/newstream/1",
"updated": "2013-04-18T03:06:53.464809Z",
"author": {
"name": "EventStore"
},
"summary": "Type",
"links": [
{
"uri": "http://127.0.0.1:2115/streams/newstream/1",
"relation": "edit"
},
{
"uri": "http://127.0.0.1:2115/streams/newstream/event/1?format=text",
"type": "text/plain"
},
{
"uri": "http://127.0.0.1:2115/streams/newstream/event/1?format=json",
"relation": "alternate",
"type": "application/json"
},
{
"uri": "http://127.0.0.1:2115/streams/newstream/event/1?format=xml",
"relation": "alternate",
"type": "text/xml"
}
]
},
{
"title": "0@newstream",
"id": "http://127.0.0.1:2115/streams/newstream/0",
"updated": "2013-04-18T03:06:53.464784Z",
"author": {
"name": "EventStore"
},
"summary": "$stream-created-implicit",
"links": [
{
"uri": "http://127.0.0.1:2115/streams/newstream/0",
"relation": "edit"
},
{
"uri": "http://127.0.0.1:2115/streams/newstream/event/0?format=text",
"type": "text/plain"
},
{
"uri": "http://127.0.0.1:2115/streams/newstream/event/0?format=json",
"relation": "alternate",
"type": "application/json"
},
{
"uri": "http://127.0.0.1:2115/streams/newstream/event/0?format=xml",
"relation": "alternate",
"type": "text/xml"
}
]
}
]
* Connection #0 to host 127.0.0.1 left intact
* Closing connection #0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment