turicas / jsock

Key-value-based, HMAC-signed, non-blocking sockets for Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jsock

Key-value-based, HMAC-signed, non-blocking sockets for Python

Installation

pip install jsock

Usage

Please check example.py.

Serializer/deserializer Benchmark

Check benchmark.py.

  • json:
    • send: 60005.29 op/s
    • recv: 79790.10 op/s
    • total time: 1.459s
  • simplejson:
    • send: 50552.37 op/s
    • recv: 83004.80 op/s
    • total time: 1.591s
  • msgpack:
    • send: 93561.46 op/s
    • recv: 145995.07 op/s
    • total time: 0.877s
  • pickle:
    • send: 87664.16 op/s
    • recv: 136931.65 op/s
    • total time: 0.935s

About

Key-value-based, HMAC-signed, non-blocking sockets for Python

License:GNU Lesser General Public License v3.0


Languages

Language:Python 97.7%Language:Makefile 2.3%