linkxzhou/http_bench

websocket demo needed

GodGavin opened this issue · 2 comments

Can i get a demo of websocket,how to send websocket message,i didn't find the commmd in the docs,thanks

Example:

./http_bench -c 1 -d 10s -http ws -url ws://127.0.0.1:18091/

Result:

Summary:
  Total:  9.000 secs
  Slowest:  0.003 secs
  Fastest:  0.000 secs
  Average:  0.000 secs
  Requests/sec: 48575.441
  Total data: 0.000 bytes
  Size/request: 0 bytes

Status code distribution:
  [1] 437179 responses

Latency distribution:
  10% in 0.000 secs
  25% in 0.001 secs
  50% in 0.002 secs
  75% in 0.003 secs
  90% in  secs
  95% in  secs
  99% in  secs
Summary:
  Total:  9.000 secs
  Slowest:  0.003 secs
  Fastest:  0.000 secs
  Average:  0.000 secs
  Requests/sec: 48575.441
  Total data: 0.000 bytes
  Size/request: 0 bytes

Status code distribution:
  [1] 437179 responses

Latency distribution:
  10% in 0.000 secs
  25% in 0.001 secs
  50% in 0.002 secs
  75% in 0.003 secs
  90% in  secs
  95% in  secs
  99% in  secs

And the latest version, You can run ./http_bench -example to get example。

I mean how to send websocket message,when websocket client connect to websocket server,client need to send message to server,for instance client send message "counter+",understand me?