Hi again,
A test that generates large JSON structures (source code here) reveals that V8's JSON parser is 3-4 times as fast as its JavaScript parser, at least when it comes to processing JSON. Consider also that JavaScript parsers are not 100% JSON-compliant (link).
Of course, this test uses very large JSON blocks (~7.5 million characters each) and may not be representative of your application. By using a trivial
We're looking at adding support for the Edge version of Chakra, but that's at a very early stage.
Cheers!
A test that generates large JSON structures (source code here) reveals that V8's JSON parser is 3-4 times as fast as its JavaScript parser, at least when it comes to processing JSON. Consider also that JavaScript parsers are not 100% JSON-compliant (link).
Of course, this test uses very large JSON blocks (~7.5 million characters each) and may not be representative of your application. By using a trivial
someFunc
, it does isolate the performance of object transfer and conversion. Is it possible that your performance issues are within your someFunc
implementation?We're looking at adding support for the Edge version of Chakra, but that's at a very early stage.
Cheers!