2 ms·
I've tested parsing complete documents with rapidjson vs pysimdjson vs simplejson on production data. Surprisingly, mean 90 times are exactly the same for all t
by welder 6y ago
I've tested parsing complete documents with rapidjson vs pysimdjson vs simplejson on production data. Surprisingly, mean 90 times are exactly the same for all three libraries. I'm not re-using the simdjson parser, just doing simdjson.loads().
- TkTech 6y agoThe time is overwhelmingly the cost of conversion to CPython objects, 95-99% of the total time. The actual document parsing to tape is always much faster than rapidjson. No CPython JSON library can get away from this overhead. You see a real benefit when you don't need or want the entire document, and can use the JSON pointer or proxy object interface.