IEG Growth Platform Technology Team
Jun 6, 2022 · Backend Development
Performance Comparison of cjson, rapidjson, and yyjson in OpenResty with a Lua Wrapper
The article benchmarks cjson, rapidjson, and yyjson JSON libraries on a 6‑core OpenResty setup, shows that combining rapidjson's encode with yyjson's decode reduces 500,000 mixed encode/decode operations to 11 seconds, and describes a Lua wrapper that adds schema validation and improves maintainability.
JSONLuaOpenResty
0 likes · 7 min read