tcp_server

command module
v0.0.0-...-4c26bf7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2019 License: GPL-2.0 Imports: 11 Imported by: 0

README

TCP_server

This is a single-thread asynchronize tcp server.

There's a dummy command line execution pretending to be a real api call.

Notes

Execution and Benchmarking

Run the server with: python3 server.py [server ip address] [port]

Run the client to benchmark the server:

usage: client.py [-h] address port [messages] [concurrency]

positional arguments:
  address      server address
  port         server port
  messages     total number of messages to send, defaults to 1
  concurrency  number of messages to send at a time, defaults to 1

Performance

On Fedora 30, i7-8705g(4C8T, @3.10GHz):

  • 47k ~ 50k requests per second

On Macbook Pro 15, Intel(R) Core(TM) i7-9750H CPU 6C12T @ 2.60GHz:

  • python (concurrency = 12): 51000 qps
  • golang (concurrency = 12): 80000 qps (with printing debug messages), 103000 (without printing debug messages)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL