├── .gitignore ├── Json VS Protobuf ├── CSharp │ ├── .gitignore │ ├── ICSharpCode.SharpZipLib.dll │ ├── LitJson.dll │ ├── Makefile │ ├── PackBenchmark.cs │ ├── ProtocolDefine.dll │ ├── ProtocolSerializer.dll │ ├── UnpackBenchmark.cs │ └── protobuf-net.dll ├── Erlang │ ├── .gitignore │ ├── benchmark │ ├── include │ │ ├── gpb.hrl │ │ └── protocol.hrl │ ├── rebar.config │ └── src │ │ ├── json_vs_proto.app.src │ │ ├── json_vs_proto.erl │ │ └── protocol.erl ├── Python │ ├── pack.py │ ├── protocol_pb2.py │ └── unpack.py ├── README.md ├── chart.png ├── data.json ├── data.json.gz ├── data.pb └── protocol.proto └── c++ ├── .gitignore ├── README.md ├── context.cpp ├── coro.h ├── coro_basic.cpp ├── coro_echo_server.cpp ├── coro_echo_server.h ├── coro_event_and_queue.cpp └── coroutine_symmetric.cpp /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yueyoum/playground/HEAD/.gitignore -------------------------------------------------------------------------------- /Json VS Protobuf/CSharp/.gitignore: -------------------------------------------------------------------------------- 1 | *.exe 2 | -------------------------------------------------------------------------------- /Json VS Protobuf/CSharp/ICSharpCode.SharpZipLib.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yueyoum/playground/HEAD/Json VS Protobuf/CSharp/ICSharpCode.SharpZipLib.dll -------------------------------------------------------------------------------- /Json VS Protobuf/CSharp/LitJson.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yueyoum/playground/HEAD/Json VS Protobuf/CSharp/LitJson.dll -------------------------------------------------------------------------------- /Json VS Protobuf/CSharp/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yueyoum/playground/HEAD/Json VS Protobuf/CSharp/Makefile -------------------------------------------------------------------------------- /Json VS Protobuf/CSharp/PackBenchmark.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yueyoum/playground/HEAD/Json VS Protobuf/CSharp/PackBenchmark.cs -------------------------------------------------------------------------------- /Json VS Protobuf/CSharp/ProtocolDefine.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yueyoum/playground/HEAD/Json VS Protobuf/CSharp/ProtocolDefine.dll -------------------------------------------------------------------------------- /Json VS Protobuf/CSharp/ProtocolSerializer.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yueyoum/playground/HEAD/Json VS Protobuf/CSharp/ProtocolSerializer.dll -------------------------------------------------------------------------------- /Json VS Protobuf/CSharp/UnpackBenchmark.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yueyoum/playground/HEAD/Json VS Protobuf/CSharp/UnpackBenchmark.cs -------------------------------------------------------------------------------- /Json VS Protobuf/CSharp/protobuf-net.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yueyoum/playground/HEAD/Json VS Protobuf/CSharp/protobuf-net.dll -------------------------------------------------------------------------------- /Json VS Protobuf/Erlang/.gitignore: -------------------------------------------------------------------------------- 1 | deps 2 | ebin 3 | .rebar -------------------------------------------------------------------------------- /Json VS Protobuf/Erlang/benchmark: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yueyoum/playground/HEAD/Json VS Protobuf/Erlang/benchmark -------------------------------------------------------------------------------- /Json VS Protobuf/Erlang/include/gpb.hrl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yueyoum/playground/HEAD/Json VS Protobuf/Erlang/include/gpb.hrl -------------------------------------------------------------------------------- /Json VS Protobuf/Erlang/include/protocol.hrl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yueyoum/playground/HEAD/Json VS Protobuf/Erlang/include/protocol.hrl -------------------------------------------------------------------------------- /Json VS Protobuf/Erlang/rebar.config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yueyoum/playground/HEAD/Json VS Protobuf/Erlang/rebar.config -------------------------------------------------------------------------------- /Json VS Protobuf/Erlang/src/json_vs_proto.app.src: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yueyoum/playground/HEAD/Json VS Protobuf/Erlang/src/json_vs_proto.app.src -------------------------------------------------------------------------------- /Json VS Protobuf/Erlang/src/json_vs_proto.erl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yueyoum/playground/HEAD/Json VS Protobuf/Erlang/src/json_vs_proto.erl -------------------------------------------------------------------------------- /Json VS Protobuf/Erlang/src/protocol.erl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yueyoum/playground/HEAD/Json VS Protobuf/Erlang/src/protocol.erl -------------------------------------------------------------------------------- /Json VS Protobuf/Python/pack.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yueyoum/playground/HEAD/Json VS Protobuf/Python/pack.py -------------------------------------------------------------------------------- /Json VS Protobuf/Python/protocol_pb2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yueyoum/playground/HEAD/Json VS Protobuf/Python/protocol_pb2.py -------------------------------------------------------------------------------- /Json VS Protobuf/Python/unpack.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yueyoum/playground/HEAD/Json VS Protobuf/Python/unpack.py -------------------------------------------------------------------------------- /Json VS Protobuf/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yueyoum/playground/HEAD/Json VS Protobuf/README.md -------------------------------------------------------------------------------- /Json VS Protobuf/chart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yueyoum/playground/HEAD/Json VS Protobuf/chart.png -------------------------------------------------------------------------------- /Json VS Protobuf/data.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yueyoum/playground/HEAD/Json VS Protobuf/data.json -------------------------------------------------------------------------------- /Json VS Protobuf/data.json.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yueyoum/playground/HEAD/Json VS Protobuf/data.json.gz -------------------------------------------------------------------------------- /Json VS Protobuf/data.pb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yueyoum/playground/HEAD/Json VS Protobuf/data.pb -------------------------------------------------------------------------------- /Json VS Protobuf/protocol.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yueyoum/playground/HEAD/Json VS Protobuf/protocol.proto -------------------------------------------------------------------------------- /c++/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yueyoum/playground/HEAD/c++/.gitignore -------------------------------------------------------------------------------- /c++/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yueyoum/playground/HEAD/c++/README.md -------------------------------------------------------------------------------- /c++/context.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yueyoum/playground/HEAD/c++/context.cpp -------------------------------------------------------------------------------- /c++/coro.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yueyoum/playground/HEAD/c++/coro.h -------------------------------------------------------------------------------- /c++/coro_basic.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yueyoum/playground/HEAD/c++/coro_basic.cpp -------------------------------------------------------------------------------- /c++/coro_echo_server.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yueyoum/playground/HEAD/c++/coro_echo_server.cpp -------------------------------------------------------------------------------- /c++/coro_echo_server.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yueyoum/playground/HEAD/c++/coro_echo_server.h -------------------------------------------------------------------------------- /c++/coro_event_and_queue.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yueyoum/playground/HEAD/c++/coro_event_and_queue.cpp -------------------------------------------------------------------------------- /c++/coroutine_symmetric.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yueyoum/playground/HEAD/c++/coroutine_symmetric.cpp --------------------------------------------------------------------------------