Suggestion from Milo Yip: Test with some pretty-formatted json, which has a lot of whitespaces. rapidjson has SSE2/4 optimization for this.