32 ms·
I added Kim to my ongoing set of python serialization framework benchmarks here is how it ranks. Library Many Objects One Object ------
by voidfiles 9y ago
I added Kim to my ongoing set of python serialization framework benchmarks here is how it ranks.
Library Many Objects One Object
--------------------- -------------- ------------
Custom 0.0187769 0.00682402
Strainer 0.0603201 0.0337129
serpy 0.073787 0.038656
Lollipop 0.47821 0.231566
Marshmallow 1.14844 0.598486
Django REST Framework 1.94096 1.3277
kim 2.28477 1.15237
Comments on how to improve the benchmark are appreciated.
source: https://voidfiles.github.io/python-serialization-benchmark/ https://voidfiles.github.io/python-serialization-benchmark/
- RussianCow 9y agoJust a minor note: It seems you don't mention anywhere what those numbers actually mean. I'm assuming they are seconds, but I can't know for certain, which makes it really unclear if Kim is the fastest or the slowest.
- makmanalp 9y agoThis is brilliant, exactly what I was looking for. I did a profile recently on some API calls and found that 40-50% was being spent on serialization with marshmallow, which I'm looking to drop. I'll be doing this stuff for myself, but would you be curious in having: a) Support for lima: https://lima.readthedocs.io/en/latest/ https://lima.readthedocs.io/en/latest/ b) more benchmark cases (serializing a larger list of objects)
- mikeywaites 9y agoThanks so much for this Voidfiles. We were under no illusions that we weren't the most performant library out there (yet) This is a great start for us understanding where we need to get to! We've got some work to do :)