3 ms·
See this thread on the Cap'n Proto mailing list for some idea of how well Python does on this benchmark: https://groups.google.com/forum/#!topic/capnproto/BDpV
by dwrensha 13y ago
See this thread on the Cap'n Proto mailing list for some idea of how well Python does on this benchmark:
https://groups.google.com/forum/#!topic/capnproto/BDpV6WEG5Bw https://groups.google.com/forum/#!topic/capnproto/BDpV6WEG5B...
- steveklabnik 13y agoThank you!
- cma 13y agoKeep in mind pycapnp is a wrapper of the c++ lib, so you aren't seeing all of the lower-level language gains in the comparison.
- jparyani 13y agoAuthor of pycapnp here. For those too lazy to click through, pycapnp is tremendously slower than C++/Rust. The equivalent benchmarks take about 20-50x as long. What's more interesting to me is comparing it to other Python serialization libraries. I've been meaning to update the benchmarks with some popular ones (msgpack, thrift, and the built-in json module are at the top of my list). If there's some interest, I'll go ahead and post it to HN when I'm done.
- westernmostcoy 13y agoI'd certainly be interested!
- thinkpad20 13y agoCurious, how feasible would it be to simply call into existing C/C++ libraries from python instead of writing it in pure python?
- dwrensha 13y agoPycapnp is not pure Python. It wraps Cap'n Proto's C++ dynamic API. See http://kentonv.github.io/capnproto/otherlang.html#supporting_dynamic_languages http://kentonv.github.io/capnproto/otherlang.html#supporting... .